Repository navigation
Conversation
added 2 commits
June 7, 2019 15:51
jianyuewu
reviewed
Jun 7, 2019
| if (!l1 && !l2) { | ||
| return null; | ||
| } | ||
| let head = new ListNode(null); |
jianyuewu
reviewed
Jun 7, 2019
| */ | ||
|
|
||
| // 递归法 | ||
| var treeSymmetric = function(t1, t2) { |
Contributor
There was a problem hiding this comment.
t1, t2,最好能写成left, right, 容易懂些。
jianyuewu
reviewed
Jun 7, 2019
|
|
||
| // 递归法 | ||
| var treeSymmetric = function(t1, t2) { | ||
| if (t1 == null && t2 == null) { |
Contributor
There was a problem hiding this comment.
不懂javascript,不过可能四行可以合并为两行:
if (t1 == null || t2 == null) {
return t1 == t2;
}
Contributor
请按照代码文件命名规则进行命名:LeetCode_题目序号_学号,比如学号为 0 的学员完成 LeetCode_33_108 的第 2 题 后,请将代码文件名保存为 LeetCode_2_0.py (假设你使用的是 Python 语言)。 |
Author
我的哪里不符合规则,我没看出来命名有什么问题?? |
GeekUniversity
added a commit
that referenced
this pull request
Jun 24, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
还差4道题未提交;
174(递归解法报超时,dp不太理解)、42(和84一样只会暴力解法)、783、938(这两个有部分case没过去,需要看)