First of all, the deepin distribution of Linux is very pretty!
I like the color scheme, icon design, control panel design, etc.
Since the main feature of deepin is desktop design,
I really want to use its desktop from my remote machines if bandwidth is fine.
I have some thing stored on my office computer,
but it is not simple to access from outside.
The only way is using jump machine by ssh.
If I want to get some files out,
I must send it to jump machine and then fetch it.
The problem is https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/.
If just follow the process defined as described in problem,
it is quite simple except the runtime is O(n**2):
The problem is https://leetcode.com/problems/binary-watch/.
Because the input size is limited, generating every output is workable.
Simplely follow the input, using itertools could generate all combinations.
Recently I received an old ThinkPad X61 body, which has a broken screen,
lacks battery, bad memory, slow hdd and broken surface C.
After bought some accessories, I re-installed a Xubuntu 16.04 system on it.
Even at present, the design of this laptop is in fashion.
All four borders ...
The problem is here: https://leetcode.com/problems/tenth-line/.
It's a bash programming, reading the 10th line of a file and output in stdout.
I think there are lots of methods to do this, here I write some.
If the file has more than 10 lines, I can output ...
The problem is here: https://leetcode.com/problems/path-sum/ .
Fancy that the number can be negative numbers, I made a stupid 'optimization'.
I added a piece of code to check whether current node value is bigger than sum,
assuming that every node value is positive.
After droping this 'optimization', it ...
The problem is here: https://leetcode.com/problems/bitwise-and-of-numbers-range/ .
I simply wrote a silly version and failed as expected,
it just did exactly as this problem described.
classSolution(object):
defrangeBitwiseAnd(self, m, n): """ Attention! This is a bad version! :type m: int :type n: int :rtype: int """ return ...