Tree

Tree #

TitleSolutionDifficultyTimeSpace收藏
94. Binary Tree Inorder TraversalGoMediumO(n)O(1)
96. Unique Binary Search TreesGoMediumO(n^2)O(n)
98. Validate Binary Search TreeGoMediumO(n)O(1)
99. Recover Binary Search TreeGoHardO(n)O(1)
100. Same TreeGoEasyO(n)O(1)
101. Symmetric TreeGoEasyO(n)O(1)
102. Binary Tree Level Order TraversalGoMediumO(n)O(1)
103. Binary Tree Zigzag Level Order TraversalGoMediumO(n)O(n)
104. Maximum Depth of Binary TreeGoEasyO(n)O(1)
107. Binary Tree Level Order Traversal IIGoEasyO(n)O(1)
108. Convert Sorted Array to Binary Search TreeGoEasyO(n)O(1)
110. Balanced Binary TreeGoEasyO(n)O(1)
111. Minimum Depth of Binary TreeGoEasyO(n)O(1)
112. Path SumGoEasyO(n)O(1)
113. Path Sum IIGoMediumO(n)O(1)
114. Flatten Binary Tree to Linked ListGoMediumO(n)O(1)
124. Binary Tree Maximum Path SumGoHardO(n)O(1)
129. Sum Root to Leaf NumbersGoMediumO(n)O(1)
144. Binary Tree Preorder TraversalGoMediumO(n)O(1)
145. Binary Tree Postorder TraversalGoHardO(n)O(1)
173. Binary Search Tree IteratorGoMediumO(n)O(1)
199. Binary Tree Right Side ViewGoMediumO(n)O(1)
222. Count Complete Tree NodesGoMediumO(n)O(1)
226. Invert Binary TreeGoEasyO(n)O(1)
230. Kth Smallest Element in a BSTGoMediumO(n)O(1)
235. Lowest Common Ancestor of a Binary Search TreeGoEasyO(n)O(1)
236. Lowest Common Ancestor of a Binary TreeGoMediumO(n)O(1)
257. Binary Tree PathsGoEasyO(n)O(1)
404. Sum of Left LeavesGoEasyO(n)O(1)
437. Path Sum IIIGoEasyO(n)O(1)
515. Find Largest Value in Each Tree RowGoMediumO(n)O(n)
637. Average of Levels in Binary TreeGoEasyO(n)O(n)
993. Cousins in Binary TreeGoEasyO(n)O(1)
————————————————————————————————–———————–———–——–

⬅️上一页

下一页➡️

Calendar Sep 6, 2020
Edit Edit this page
本站总访问量:  次 您是本站第  位访问者