Skip to content

Commit bd04837

Browse files
author
lucifer
committed
fix: typo
1 parent cdf6442 commit bd04837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/101.symmetric-tree.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ https://leetcode-cn.com/problems/symmetric-tree/
4646

4747
最初我的想法是两次遍历,第一次遍历的同时将遍历结果存储到哈希表中,然后第二次遍历去哈希表取。
4848

49-
这种方法可行,但是无需要 N 的空间(N 为节点总数)。我想到如果两者可以同时进行遍历,是不是就省去了哈希表的开销。
49+
这种方法可行,但是需要 N 的空间(N 为节点总数)。我想到如果两者可以同时进行遍历,是不是就省去了哈希表的开销。
5050

5151
如果不明白的话,我举个简单例子:
5252

0 commit comments

Comments
 (0)