2.06 Tree

Tree #

0094Binary Tree Inorder TraversalGoEasyO(n)O(1)73.8%
0095Unique Binary Search Trees IIGoMedium52.3%
0096Unique Binary Search TreesGoMediumO(n^2)O(n)59.6%
0098Validate Binary Search TreeGoMediumO(n)O(1)32.0%
0099Recover Binary Search TreeGoMediumO(n)O(1)51.0%
0100Same TreeGoEasyO(n)O(1)58.1%
0101Symmetric TreeGoEasyO(n)O(1)54.3%
0102Binary Tree Level Order TraversalGoMediumO(n)O(1)64.3%
0103Binary Tree Zigzag Level Order TraversalGoMediumO(n)O(n)56.9%
0104Maximum Depth of Binary TreeGoEasyO(n)O(1)73.9%
0105Construct Binary Tree from Preorder and Inorder TraversalGoMedium61.5%
0106Construct Binary Tree from Inorder and Postorder TraversalGoMedium60.0%
0107Binary Tree Level Order Traversal IIGoMediumO(n)O(1)61.1%
0108Convert Sorted Array to Binary Search TreeGoEasyO(n)O(1)69.8%
0109Convert Sorted List to Binary Search TreeGoMedium60.2%
0110Balanced Binary TreeGoEasyO(n)O(1)49.0%
0111Minimum Depth of Binary TreeGoEasyO(n)O(1)44.4%
0112Path SumGoEasyO(n)O(1)48.2%
0113Path Sum IIGoMediumO(n)O(1)57.1%
0114Flatten Binary Tree to Linked ListGoMediumO(n)O(1)61.8%
0116Populating Next Right Pointers in Each NodeGoMedium60.4%
0124Binary Tree Maximum Path SumGoHardO(n)O(1)39.2%
0129Sum Root to Leaf NumbersGoMediumO(n)O(1)61.0%
0144Binary Tree Preorder TraversalGoEasyO(n)O(1)66.8%
0145Binary Tree Postorder TraversalGoEasyO(n)O(1)67.9%
0173Binary Search Tree IteratorGoMediumO(n)O(1)69.7%
0199Binary Tree Right Side ViewGoMediumO(n)O(1)61.6%
0222Count Complete Tree NodesGoMediumO(n)O(1)60.5%
0226Invert Binary TreeGoEasyO(n)O(1)74.7%
0230Kth Smallest Element in a BSTGoMediumO(n)O(1)70.1%
0235Lowest Common Ancestor of a Binary Search TreeGoMediumO(n)O(1)61.5%
0236Lowest Common Ancestor of a Binary TreeGoMediumO(n)O(1)58.8%
0257Binary Tree PathsGoEasyO(n)O(1)61.4%
0297Serialize and Deserialize Binary TreeGoHard55.4%
0331Verify Preorder Serialization of a Binary TreeGoMedium44.6%
0337House Robber IIIGoMedium53.9%
0341Flatten Nested List IteratorGoMedium61.8%
0404Sum of Left LeavesGoEasyO(n)O(1)56.7%
0429N-ary Tree Level Order TraversalGoMedium70.7%
0437Path Sum IIIGoMediumO(n)O(1)48.0%
0508Most Frequent Subtree SumGoMedium64.9%
0513Find Bottom Left Tree ValueGoMedium66.9%
0515Find Largest Value in Each Tree RowGoMediumO(n)O(n)64.6%
0530Minimum Absolute Difference in BSTGoEasy57.3%
0538Convert BST to Greater TreeGoMedium67.8%
0543Diameter of Binary TreeGoEasy56.8%
0559Maximum Depth of N-ary TreeGoEasy71.7%
0563Binary Tree TiltGoEasy60.0%
0572Subtree of Another TreeGoEasy46.4%
0589N-ary Tree Preorder TraversalGoEasy75.9%
0617Merge Two Binary TreesGoEasy78.6%
0623Add One Row to TreeGoMedium59.5%
0637Average of Levels in Binary TreeGoEasyO(n)O(n)71.8%
0653Two Sum IV - Input is a BSTGoEasy61.0%
0662Maximum Width of Binary TreeGoMedium40.7%
0669Trim a Binary Search TreeGoMedium66.4%
0700Search in a Binary Search TreeGoEasy77.7%
0701Insert into a Binary Search TreeGoMedium74.3%
0703Kth Largest Element in a StreamGoEasy55.5%
0783Minimum Distance Between BST NodesGoEasy59.3%
0834Sum of Distances in TreeGoHard59.1%
0863All Nodes Distance K in Binary TreeGoMedium62.2%
0872Leaf-Similar TreesGoEasy67.6%
0897Increasing Order Search TreeGoEasy78.4%
0938Range Sum of BSTGoEasy85.9%
0958Check Completeness of a Binary TreeGoMedium56.2%
0968Binary Tree CamerasGoHard46.6%
0971Flip Binary Tree To Match Preorder TraversalGoMedium50.0%
0979Distribute Coins in Binary TreeGoMedium72.2%
0987Vertical Order Traversal of a Binary TreeGoHard45.1%
0993Cousins in Binary TreeGoEasyO(n)O(1)54.6%
1022Sum of Root To Leaf Binary NumbersGoEasy73.6%
1026Maximum Difference Between Node and AncestorGoMedium75.8%
1028Recover a Tree From Preorder TraversalGoHard73.3%
1038Binary Search Tree to Greater Sum TreeGoMedium85.5%
1104Path In Zigzag Labelled Binary TreeGoMedium75.1%
1110Delete Nodes And Return ForestGoMedium69.3%
1123Lowest Common Ancestor of Deepest LeavesGoMedium70.9%
1145Binary Tree Coloring GameGoMedium51.7%
1302Deepest Leaves SumGoMedium86.7%
1305All Elements in Two Binary Search TreesGoMedium79.8%
1600Throne InheritanceGoMedium63.6%
1609Even Odd TreeGoMedium54.3%
2096Step-By-Step Directions From a Binary Tree Node to AnotherGoMedium48.4%



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