You are given two integer arrays and of lengths and respectively. and represent the digits of two numbers. You are also given an integer .

Create the maximum number of length from 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.

There are tons of argument parser libraries out there, for every programming…


cup of tea (wallpaperaccess.com)

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…


The Matrix

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:

What’s…


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).

I’m practicing my algorithm skills with Leetcode and I’m a lazy coder on every aspect. This time is about writing test cases for…


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 or branch for all (of course, branch for releasing)…


I have been working on Android for years. Whenever making a (or get/put) a field in the SharedPreferences file, I feel hard. It’s, sometimes, because I don’t know which name I should name the preference. …


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:

1. Font size scaling

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…

Tuan Chau

A lazy coder

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store