Update 0116-populating-next-right-pointers-in-each-node.cpp Jan 3, 2023 0117-populating-next-right-pointers-in-each-node-ii Time: 32 ms (24.32%), Space: 18.6 MB (5.25%) - LeetHub Jan 3, 2023 0118-pascals-triangle Time: 3 ms (41.15%), Space: 6.6 MB (82.50%) - LeetHub Sep 8,...
0448-find-all-numbers-disappeared-in-an-array.rs 0450-delete-node-in-a-bst.rs 0456-132-pattern.rs 0472-concatenated-words.rs 0496-next-greater-element-I.rs 0496-next-greater-element-i.rs 0518-coin-change-ii.rs 0523-continuous-subarray-sum.rs 0535-encode-and-decode-tinyURL.rs 0535-encode...
空间O(num of TrieNode * 26) = O(num of words * word.length() * 26) Java实现 1classWordDictionary {2classNode {3Node[] children;4booleanisEnd;5String word;67publicNode() {8children =newNode[26];9isEnd =false;10word = "";11}12}1314Node root;1516publicWordDictionary() {17root =...
0019-remove-nth-node-from-end-of-list.swift 0020-valid-parentheses.swift 0021-merge-two-sorted-lists.swift 0022-generate-parentheses.swift 0023-merge-k-sorted-lists.swift 0025-reverse-nodes-in-k-group.swift 0026-Remove-Duplicates-from-Sorted-Array.swift 0026-remove-duplicates-from-sorted-array.sw...
0019-remove-nth-node-from-end-of-list.py 0020-valid-parentheses.py 0021-merge-two-sorted-lists.py 0022-generate-parentheses.py 0023-merge-k-sorted-lists.py 0024-swap-nodes-in-pairs.py 0025-reverse-nodes-in-k-group.py 0026-remove-duplicates-from-sorted-array.py 0027...
uni_bst.cpp Calculate number of unique BST Oct 31, 2019 vector.cpp Vector.cpp Oct 27, 2019 xor_operation.java xor operation Oct 1, 2020 Repository files navigation README Code of conduct MIT license Hacktoberfest Hello World !!! HacktoberFest Hello World in every other language ever. Jus...
## [98. Validate Binary Search Tree 3行](https://leetcode.com/problems/validate-binary-search-tree/) ```python # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None ...
uni_bst.cpp Calculate number of unique BST Oct 31, 2019 vector.cpp Vector.cpp Oct 27, 2019 xor_operation.java xor operation Oct 1, 2020 Repository files navigation README Code of conduct MIT license Hacktoberfest Hello World !!! HacktoberFest Hello World in every other language ever. Jus...
uni_bst.cpp Calculate number of unique BST October 31, 2019 21:10 vector.cpp Vector.cpp October 27, 2019 18:33 xor_operation.java xor operation October 1, 2020 11:15 README.md Hacktoberfest Hello World !!! HacktoberFest Hello World in every other language ever. Just fork it and ad...
README Code of conduct MIT license Hacktoberfest Hello World !!! HacktoberFest Hello World in every other language ever. Just fork it and add a 'Hello World' program to contribute for hacktober fest and send a Pull Request!! Get yourself free goodies by just writing a hello world! Sa...