2.06 Tree

Tree #

No.TitleSolutionDifficultyTimeComplexitySpaceComplexityFavoriteAcceptance
0094Binary Tree Inorder TraversalGoMediumO(n)O(1)66.3%
0095Unique Binary Search Trees IIGoMedium43.0%
0096Unique Binary Search TreesGoMediumO(n^2)O(n)54.7%
0098Validate Binary Search TreeGoMediumO(n)O(1)28.9%
0099Recover Binary Search TreeGoHardO(n)O(1)42.8%
0100Same TreeGoEasyO(n)O(1)54.3%
0101Symmetric TreeGoEasyO(n)O(1)48.5%
0102Binary Tree Level Order TraversalGoMediumO(n)O(1)57.0%
0103Binary Tree Zigzag Level Order TraversalGoMediumO(n)O(n)50.5%
0104Maximum Depth of Binary TreeGoEasyO(n)O(1)68.4%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium52.4%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium50.2%
0107Binary Tree Level Order Traversal IIGoMediumO(n)O(1)55.5%
0108Convert Sorted Array to Binary Search TreeGoEasyO(n)O(1)60.9%
0110Balanced Binary TreeGoEasyO(n)O(1)44.9%
0111Minimum Depth of Binary TreeGoEasyO(n)O(1)39.8%
0112Path SumGoEasyO(n)O(1)42.7%
0113Path Sum IIGoMediumO(n)O(1)49.5%
0114Flatten Binary Tree to Linked ListGoMediumO(n)O(1)52.4%
0124Binary Tree Maximum Path SumGoHardO(n)O(1)35.7%
0129Sum Root to Leaf NumbersGoMediumO(n)O(1)51.3%
0144Binary Tree Preorder TraversalGoMediumO(n)O(1)57.9%
0145Binary Tree Postorder TraversalGoMediumO(n)O(1)58.1%
0173Binary Search Tree IteratorGoMediumO(n)O(1)60.7%
0199Binary Tree Right Side ViewGoMediumO(n)O(1)56.6%
0222Count Complete Tree NodesGoMediumO(n)O(1)49.8%
0226Invert Binary TreeGoEasyO(n)O(1)67.4%
0230Kth Smallest Element in a BSTGoMediumO(n)O(1)63.0%
0235Lowest Common Ancestor of a Binary Search TreeGoEasyO(n)O(1)52.1%
0236Lowest Common Ancestor of a Binary TreeGoMediumO(n)O(1)49.4%
0257Binary Tree PathsGoEasyO(n)O(1)54.1%
0297Serialize and Deserialize Binary TreeGoHard50.2%
0337House Robber IIIGoMedium52.0%
0404Sum of Left LeavesGoEasyO(n)O(1)52.3%
0437Path Sum IIIGoMediumO(n)O(1)48.3%
0508Most Frequent Subtree SumGoMedium59.3%
0513Find Bottom Left Tree ValueGoMedium62.8%
0515Find Largest Value in Each Tree RowGoMediumO(n)O(n)62.4%
0530Minimum Absolute Difference in BSTGoEasy55.1%
0538Convert BST to Greater TreeGoMedium59.8%
0563Binary Tree TiltGoEasy53.3%
0572Subtree of Another TreeGoEasy44.6%
0623Add One Row to TreeGoMedium53.0%
0637Average of Levels in Binary TreeGoEasyO(n)O(n)66.1%
0653Two Sum IV - Input is a BSTGoEasy56.4%
0662Maximum Width of Binary TreeGoMedium39.7%
0669Trim a Binary Search TreeGoMedium64.3%
0684Redundant ConnectionGoMedium59.2%
0685Redundant Connection IIGoHard33.2%
0783Minimum Distance Between BST NodesGoEasy54.3%
0834Sum of Distances in TreeGoHard46.6%
0863All Nodes Distance K in Binary TreeGoMedium58.2%
0872Leaf-Similar TreesGoEasy64.5%
0897Increasing Order Search TreeGoEasy74.6%
0968Binary Tree CamerasGoHard38.9%
0971Flip Binary Tree To Match Preorder TraversalGoMedium50.1%
0979Distribute Coins in Binary TreeGoMedium70.0%
0987Vertical Order Traversal of a Binary TreeGoHard39.0%
0993Cousins in Binary TreeGoEasyO(n)O(1)52.3%
1026Maximum Difference Between Node and AncestorGoMedium69.7%
1028Recover a Tree From Preorder TraversalGoHard71.1%
1038Binary Search Tree to Greater Sum TreeGoMedium82.6%
1110Delete Nodes And Return ForestGoMedium67.9%
1123Lowest Common Ancestor of Deepest LeavesGoMedium68.0%
1145Binary Tree Coloring GameGoMedium51.3%
1302Deepest Leaves SumGoMedium85.5%
1305All Elements in Two Binary Search TreesGoMedium77.8%
——————————————————————-——-—————-—————————-————-————-

⬅️上一页

下一页➡️

Calendar Apr 13, 2021
Edit Edit this page
本站总访问量:  次 您是本站第  位访问者