1026. Maximum Difference Between Node and Ancestor

Problem Given the root of a binary tree, find the maximum value V for which there exists different nodes A and B where V = |A.val - B.val| and A is an ancestor of B. (A node A i...

2019/05/07 23:16
256
1027. Longest Arithmetic Sequence

Problem Given an array A of integers, return the length of the longest arithmetic subsequence in A. Recall that a subsequence of A is a list A[i_1], A[i_2], ..., A[i_k] with 0 <...

2019/05/07 14:37
87
1031. Maximum Sum of Two Non-Overlapping Subarrays

Problem Given an array A of non-negative integers, return the maximum sum of elements in two non-overlapping (contiguous) subarrays, which have lengths L and M. (For clarificati...

2019/05/05 19:07
219
1034. Coloring A Border

Problem Given a 2-dimensional grid of integers, each value in the grid represents the color of the grid square at that location. Two squares belong to the same connected compone...

2019/05/01 16:16
153
1035. Uncrossed Lines

Problem We write the integers of A and B (in the order they are given) on two separate horizontal lines. Now, we may draw a straight line connecting two numbers A[i] and B[j] as...

2019/05/01 15:58
168
Linux命令学习——split

split命令用来分割文件。 常用的参数有： -a，指定分割生成的新文件的文件名后缀长度。 -b，以byte为单位指定分割后单个文件的大小。 -l，以行为单位指定分割后单个文件大小。 可以在被分割的...

2019/04/29 11:24
118
Linux命令学习——wc

wc命令的作用是统计文件中的行数、词数、字符数。 常用的参数有： -l --lines，输出行数。 -w --words，输出词数。 -m --chars，输出字符数。 -c --bytes，输出字节数。 如果同时使用上述几个...

2019/04/21 17:33
123

2019/04/06 21:00
3.1K
fsync和fdatasync

2019/04/05 23:47
214
register关键字

register关键字从c++11开始已经弃用了，但是在看SuRF代码(https://www.cnblogs.com/YuNanlong/p/10235793.html) 的时候，还是看到了这个关键字的使用，所以粗浅的学习了一下这个关键字，在此...

2019/04/05 23:46
108
fopen函数出现段错误

2019/04/05 23:45
2.4K
Linux命令学习——strings

2019/04/05 23:45
210
CentOS7重置root密码

2019/04/05 23:40
131