-
Very nice application! Really appreciated.
One question about submitting Python code. I set "language=Python" in config.cfg and was able to see sample code in Python. However, when I tried to submi…
jhshi updated
7 years ago
-
如图
![image](https://cloud.githubusercontent.com/assets/21981767/25485034/e46fa018-2b8e-11e7-8bc9-448b5ea7cfbe.png)
麻烦你了,因为我不太会这些。
-
e,g Simplify Path
gynet updated
7 years ago
-
vector threeSum(vector &num) {
```
vector< vector > result;
//sort the array, this is the key
sort(num.begin(), num.end());
int n = num.size();
for (int i=0; i0 && num[i-1]==num[i]) continue;
…
-
```
vector matrix(m, vector(n, 0));
```
-
Hi @haoel
Thanks for sharing the code @
https://github.com/haoel/leetcode/blob/master/algorithms/binaryTreeRightSideView/binaryTreeRightSideView.cpp
Just FYI, the solution of mine is a little bit…
-
In case you ignored the requirements:
> The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starting from this character, t…
-
这题用一个stack可以解决问题,感觉你的代码中用了queue保存节点,没有必要,换成指针就好了:
vector preorderTraversal(TreeNode\* root){
v.clear();
stack s;
TreeNode\* p=root;
while(p!=NULL || !s.empty()){
…
-
Hello Haoel! At very beginning, I really like what comments.sh does, thanks. I got some problems with the scripts. Following is the messages and info. Do you have any advice for it?
---
[root@local…
-
leetcode在陆续增加新题。持续更新:https://github.com/ghostrong/leetcode, C++源码, .cpp 文件