Introduction We have discussed in a previous article, in most common situation if we have to maintain two Arrays working consistantly, we should bette ...
分类:
其他好文 时间:
2020-01-24 13:16:42
阅读次数:
79
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 ...
分类:
其他好文 时间:
2020-01-23 11:15:55
阅读次数:
75
Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values ...
分类:
其他好文 时间:
2020-01-23 09:17:11
阅读次数:
93
Given a binary tree root and an integer target, delete all the leaf nodes with value target. Note that once you delete a leaf node with value target, ...
分类:
其他好文 时间:
2020-01-22 11:06:54
阅读次数:
64
Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9, and ...
分类:
其他好文 时间:
2020-01-22 10:56:58
阅读次数:
75
文件操作 对文件操作流程 打开文件,得到文件句柄并赋值给一个变量 通过句柄对文件进行操作 关闭文件 现有文件如下 1 Somehow, it seems the love I knew was always the most destructive kind 2 不知为何,我经历的爱情总是最具毁灭性 ...
分类:
编程语言 时间:
2020-01-21 16:20:25
阅读次数:
135
报错信息: qly@qlyComputer:~$ pip Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import main ImportError: cannot impo ...
分类:
其他好文 时间:
2020-01-21 13:27:01
阅读次数:
75
Most basic operations in Go are not synchronized. In other words, they are not concurrency-safe. https://go101.org/article/channel.html ...
分类:
其他好文 时间:
2020-01-21 00:20:08
阅读次数:
94
题目如下: Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9 ...
分类:
其他好文 时间:
2020-01-20 14:43:03
阅读次数:
69
0. Function pointers are among the most powerful tools in C. It can be used to implement function callback in C. C++ takes a slightly different route ...
分类:
编程语言 时间:
2020-01-20 00:16:59
阅读次数:
122