You are given two integer arrays
nums2represent the digits of two numbers. You are also given an integer
Create the maximum number of length
k <= m + nfrom digits of the two numbers. …
I’m a guy who usually writes a lot of script files to automate my daily routine. To extend the flexibility of the script, a good piece of advice is to make the script accepts parameters passing from command.
In addition to making ADB more useful in testing and debugging Android apps, today I would like to introduce a short trick to backup and restore the local data for testing.
Test data on debugging built app is as important as the real data on users’ devices. Have you ever…
ADB is a useful and powerful tool to interact with an Android app or the whole Android device via the command line. However, ADB is still far away from a debug tool, therefore, usually, in a big app, we have to develop a UI tool called dev menu or something…
Some days ago, my friend requested me to help him review his code. Well, it was my daily job, so, I pleased to help.
Disclaim: Sample code is written in TypeScript, however, I’m not familiar with the language. So, correct me if I’m wrong.
Here is the code:
Mmm…, I don’t know how to start this post, actually, it’s not about Leetcode but about my laziness (yes, very similar to the story about git naming).
Well, I’m a developer. Using git is somehow my daily job. I’m not very keen on typing command on the console, especially with long commands. In my previous company, we didn’t create a branch for each feature, just
master branch for all (of course,
release-xxx branch for releasing)…
Especially on camera view, we need to implement an view that can adapt to the screen’s orientation without having a splash of android native screen rotation handler. To do this, we just need to create an instance of OrientationEventListener with an abstract method
Some notes about text rendering of Android:
Text rendering in Android does have scale ratio. For example, font size = 1,000 is 5 times as big as font size 200, and 10 times as big as font size 100. The abnormal situation we have seen when get width and height…