MCPcopy Create free account

hub / github.com/algorithm006-class02/algorithm006-class02 / functions

Functions5,772 in github.com/algorithm006-class02/algorithm006-class02

MethodinorderTraversal
(self, root: TreeNode)
Week_02/G20200343030632/Leetcode_94_632.py:16
MethodinorderTraversal
(TreeNode root)
Week_02/G20200343030376/LeetCode_94_376.java:17
MethodinorderTraversal
(self, root: TreeNode)
Week_02/G20200343030520/LeetCode-94-0520.py:25
MethodinorderTraversal
(TreeNode root)
Week_02/G20200343030536/LeetCode_94_536.java:11
MethodinorderTraversal
Week_02/G20200343030544/LeetCode_94_544.cpp:11
MethodinorderTraversal
1.递归 @param root @return
Week_02/G20200343030390/tree/Leetcode_94_390.java:49
MethodinorderTraversal
(TreeNode root)
Week_02/G20200343030408/puzzle1.java:11
MethodinorderTraversal
(TreeNode root)
Week_02/G20200343030434/LeetCode_94_434.java:21
MethodinorderTraversal
Week_02/G20200343030462/LeetCode_94_462.cpp:3
MethodinorderTraversal
(TreeNode root)
Week_02/G20200343030532/LeetCode_94_532.java:29
MethodinorderTraversal
(self, root: TreeNode)
Week_02/G20200343030588/leetcode_94_588.py:12
MethodinorderTraversal
(self, root: TreeNode)
Week_02/G20200343030638/LeetCode-94-638.py:12
MethodinorderTraversal
(TreeNode root)
Week_02/G20200343030378/LeetCode_94_378.java:6
MethodinorderTraversal
(TreeNode root)
Week_02/G20200343030020/binary-tree-inorder-traversal.java:2
MethodinorderTraversal1
递归 时间复杂度:O(n):每个节点都要访问一次 空间复杂度:最坏是O(n),平均是O(logn) @param root @return
Week_02/G20200343030564/LeetCode_94_564.java:46
FunctioninorderTraversal2
(root)
Week_02/G20200343030382/Leetcode_94_382.js:26
MethodinorderTraversal2
方法二是用stack来模拟虚拟机的栈 @param root @return
Week_02/G20200343030022/LeetCode_94_022.java:51
FunctioninorderTraversal3
(root)
Week_02/G20200343030382/Leetcode_94_382.js:45
MethodinorderTraversal3
莫里斯遍历 @param root @param res
Week_02/G20200343030564/LeetCode_94_564.java:90
MethodinorderTraversalTwo
2.基于栈的遍历 @param root @return
Week_02/G20200343030390/tree/Leetcode_94_390.java:72
MethodinorderTraversal_v1
(TreeNode root)
Week_02/G20200343030632/Leetcode_94_632.java:19
MethodinorderTraversal_v1
(self, root: TreeNode)
Week_02/G20200343030632/Leetcode_94_632.py:20
MethodinorderTraversal_v2
迭代做法, 利用栈, 使用标记的方法 1. 使用颜色标记节点的状态,新节点为白色,已访问的节点为灰色。 2. 如果遇到的节点为白色,则将其标记为灰色,然后将其右子节点、自身、左子节点依次入栈 3. 如果
Week_02/G20200343030632/Leetcode_94_632.py:30
Methodinsert
(self, word: str)
Week_06/G20200343030400/LeetCode_208_400.py:7
Methodinsert
遍历单词中的字母,从根节点开始逐个插入到 前缀树 中,children 属性是一个数组,key值是字节中的letter值
Week_06/G20200343030440/leetcode_208_440.php:30
Methodinsert
Inserts a word into the trie.
Week_06/G20200389010036/LeetCode_208_036.py:21
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030640/lesson13/208_trie_prefix_tree.py:21
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030640/lesson13/208_trie_prefix_tree.java:21
Methodinsert
Inserts a word into the trie. */
Week_06/G20200343030622/LeetCode_208_622.cc:47
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030436/208.实现-trie-前缀树.java:46
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030398/LeetCode_208_398.py:15
Methodinsert
(String word)
Week_06/G20200343030022/LeetCode_208_022.java:19
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030024/LeetCode_208_024.java:14
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030496/LeetCode_208_496.py:9
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030584/LeetCode_208_584.java:21
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030578/LeetCode_208_578.java:77
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030580/LeetCode_208_580.java:13
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030404/LeetCode_208_404.java:11
Methodinsert
Inserts a word into the trie. 链接存在。沿着链接移动到树的下一个子层。算法继续搜索下一个键字符。 链接不存在。创建一个新的节点,并将它与父节点的链接相连,该链接与当前的键字符相匹配。
Week_06/G20200343030592/LeetCode_208_592.java:55
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030522/LeetCode_208_522.java:70
Methodinsert
insert a word into the trie
Week_06/G20200343030566/Leetcode_208_566.java:22
Methodinsert
Inserts a word into the trie. */
Week_06/G20200343030614/LeetCode_208_614.cpp:14
Methodinsert
Week_06/G20200343030544/LeetCode_208_544.cpp:11
Methodinsert
Inserts a word into the trie. */
Week_06/G20200343030508/LeetCode_208_508.cpp:54
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030364/LeetCode_208_364.java:51
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030600/LeetCode_208_600.java:15
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030402/[208]实现 Trie (前缀树).java:36
Methodinsert
向字典树中添加单词 @param word 单词
Week_06/G20200343030426/Trie208.java:37
Methodinsert
(String word)
Week_06/G20200343030368/LeetCode_208_368.java:15
Methodinsert
Inserts a word into the trie. */
Week_06/G20200343030462/leetcode-208-462.cpp:14
Methodinsert
(word)
Week_06/G20200343030380/Leetcode-208-380.js:50
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030362/LeetCode_208_362.py:10
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030620/LeetCode_208_620.py:11
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030386/LeetCode_208_386.java:34
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030378/LeetCode_208_378.java:16
Methodinsert
insert a word into the trie @param word
Week_06/G20200343030020/trie.java:26
Methodinsert
Inserts a word into the trie.
Week_06/G20200343030610/LeetCode_208_610.py:10
Methodinsert
Week_06/G20200343030506/LeetCode_208_506.cpp:18
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful. */
Week_01/G20200343030400/LeetCode_641_400.cpp:22
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful. */
Week_01/G20200343030428/LeetCode_641_428.cpp:25
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful. :type value: int :rtype: bool
Week_01/G20200343030488/641.设计循环双端队列.py:21
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030518/LeetCode_641_518.java:33
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030640/640_wekk_01_middle_641.py:19
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030490/LeetCode_641_490.java:63
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030436/641.设计循环双端队列.java:29
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030022/LeetCode_641_022.java:19
MethodinsertFront
(int value)
Week_01/G20200343030024/LeetCode_622_024.java:13
MethodinsertFront
(int value)
Week_01/G20200343030024/LeetCode_622_024.java:91
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030584/MyCircularDeque2.java:48
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030580/LeetCode_641_580.java:20
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful. */
Week_01/G20200343030636/LeetCode_641_636.cpp:68
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030492/LeetCode_641_492.java:28
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030492/LeetCode_641_492.java:122
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_641_566.java:41
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/MyCircularDeque.java:35
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful. */
Week_01/G20200343030614/LeetCode_641_614.cpp:26
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030536/LeetCode_641_536.java:20
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030608/实现双端队列.py:12
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030402/MyCircularDeque.java:65
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030620/LeetCode_641_620.py:12
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030422/LeetCode_641_442.java:15
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030386/LeetCode_641_386.java:18
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030378/LeetCode_641_378.java:20
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030548/LeetCode_641_548.java:19
MethodinsertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week_01/G20200343030542/LeetCode_641_542.java:21
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful. */
Week_01/G20200343030400/LeetCode_641_400.cpp:31
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful. */
Week_01/G20200343030428/LeetCode_641_428.cpp:34
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful. :type value: int :rtype: bool
Week_01/G20200343030488/641.设计循环双端队列.py:34
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030518/LeetCode_641_518.java:45
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030640/640_wekk_01_middle_641.py:30
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030490/LeetCode_641_490.java:74
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030436/641.设计循环双端队列.java:39
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030022/LeetCode_641_022.java:29
MethodinsertLast
(int value)
Week_01/G20200343030024/LeetCode_622_024.java:23
MethodinsertLast
(int value)
Week_01/G20200343030024/LeetCode_622_024.java:101
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030584/MyCircularDeque2.java:60
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030580/LeetCode_641_580.java:36
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful. */
Week_01/G20200343030636/LeetCode_641_636.cpp:76
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030492/LeetCode_641_492.java:43
MethodinsertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week_01/G20200343030492/LeetCode_641_492.java:132
← previousnext →2,901–3,000 of 5,772, ranked by callers