Tag: tree
-
BinarySearch 0011 Univalue Tree Count (09 Apr 2022)
-
BinarySearch 0063 Tree Sum (09 Apr 2022)
-
BinarySearch 0064 Leftmost Deepest Tree Node (09 Apr 2022)
-
BinarySearch 0065 Sum of the Deepest Nodes (09 Apr 2022)
-
BinarySearch 0066 Twin Trees (09 Apr 2022)
-
BinarySearch 0069 Binary Search Tree Validation (09 Apr 2022)
-
BinarySearch 0070 Level Order Traversal (09 Apr 2022)
-
BinarySearch 0072 Invert Tree (09 Apr 2022)
-
BinarySearch 0074 Search in a Binary Search Tree (09 Apr 2022)
-
BinarySearch 0076 Merging Binary Trees (09 Apr 2022)
-
BinarySearch 0080 Tree Pruning (09 Apr 2022)
-
BinarySearch 0082 Largest Root to Leaf Sum (09 Apr 2022)
-
BinarySearch 0091 Inorder Traversal (09 Apr 2022)
-
BinarySearch 0129 Largest Binary Search Subtree in Nodes (09 Apr 2022)
-
BinarySearch 0132 Height Balanced Tree (09 Apr 2022)
-
BinarySearch 0134 Count BST Nodes in a Range (09 Apr 2022)
-
BinarySearch 0170 Number of Unique Binary Search Trees (09 Apr 2022)
-
BinarySearch 0175 Left Side View of a Tree (09 Apr 2022)
-
BinarySearch 0180 Complete Binary Tree (09 Apr 2022)
-
BinarySearch 0181 Sum Tree (09 Apr 2022)
-
BinarySearch 0196 Convert to Full Binary Tree (09 Apr 2022)
-
BinarySearch 0199 Level Order Alternating (09 Apr 2022)
-
BinarySearch 0211 Longest Tree Path (09 Apr 2022)
-
BinarySearch 0217 Maximum Non-Adjacent Tree Sum (09 Apr 2022)
-
BinarySearch 0225 List to Binary Search Tree (09 Apr 2022)
-
BinarySearch 0231 Binary Tree to Linked List (09 Apr 2022)
-
BinarySearch 0234 Largest Tree Sum Path (09 Apr 2022)
-
BinarySearch 0237 Binary Tree Width (09 Apr 2022)
-
BinarySearch 0246 Sibling Tree Value (09 Apr 2022)
-
BinarySearch 0247 Lowest Common Ancestor (09 Apr 2022)
-
BinarySearch 0251 Univalue Tree (09 Apr 2022)
-
BinarySearch 0252 Cutting Binary Search Tree (09 Apr 2022)
-
BinarySearch 0254 Sum of Right Leaves (09 Apr 2022)
-
BinarySearch 0275 Elephant Tree (09 Apr 2022)
-
BinarySearch 0282 Tree Traversal (09 Apr 2022)
-
BinarySearch 0284 Palindromic Tree (09 Apr 2022)
-
BinarySearch 0293 Symmetric Binary Tree (09 Apr 2022)
-
BinarySearch 0294 Partition Tree (09 Apr 2022)
-
BinarySearch 0300 Level Order Binary Tree to Linked List (09 Apr 2022)
-
BinarySearch 0304 Linked List to ZigZag Tree Path (09 Apr 2022)
-
BinarySearch 0325 Tree From Pre/Inorder Traversals (09 Apr 2022)
-
BinarySearch 0327 Leaves in Same Level (09 Apr 2022)
-
BinarySearch 0334 Leaf Equivalent Trees (09 Apr 2022)
-
BinarySearch 0336 Longest Even Value Path (09 Apr 2022)
-
BinarySearch 0338 Longest Even Sum Path (09 Apr 2022)
-
BinarySearch 0345 One Integer (09 Apr 2022)
-
BinarySearch 0446 Subtree (09 Apr 2022)
-
BinarySearch 0453 Binary Tree Longest Consecutive Path (09 Apr 2022)
-
BinarySearch 0470 Popularity (09 Apr 2022)
-
BinarySearch 0505 Second Place (09 Apr 2022)
-
BinarySearch 0509 Only Child (09 Apr 2022)
-
BinarySearch 0512 Tree Coloring (09 Apr 2022)
-
BinarySearch 0557 Diagonal Tree Traversal (09 Apr 2022)
-
BinarySearch 0572 ZigZag Path (09 Apr 2022)
-
BinarySearch 0585 Largest Difference Between Node and a Descendant (09 Apr 2022)
-
BinarySearch 0587 Tree Sum Count (09 Apr 2022)
-
BinarySearch 0589 Binary Tree Nodes Around Radius (09 Apr 2022)
-
BinarySearch 0607 Sum of Digit Paths in a Tree (09 Apr 2022)
-
BinarySearch 0622 Binary Search Tree Typo (09 Apr 2022)
-
BinarySearch 0636 Inverted Subtree (09 Apr 2022)
-
BinarySearch 0684 Counting Maximal Value Roots in Binary Tree (09 Apr 2022)
-
BinarySearch 0723 Tag Game in a Tree (09 Apr 2022)
-
BinarySearch 0730 Binary Search Tree Iterator (09 Apr 2022)
-
BinarySearch 0834 Tree Shifting (09 Apr 2022)
-
BinarySearch 0840 Lowest Common Ancestor of List of Values (09 Apr 2022)
-
BinarySearch 0846 Tree Detection (09 Apr 2022)
-
BinarySearch 0847 Split Tree to Maximize Product (09 Apr 2022)
-
BinarySearch 0849 Find a Linked List in a Binary Tree (09 Apr 2022)
-
BinarySearch 0858 Sum of Two Numbers in BSTs (09 Apr 2022)
-
BinarySearch 0864 Enlarge BST (09 Apr 2022)
-
BinarySearch 0867 Count Nodes in Complete Binary Tree (09 Apr 2022)
-
BinarySearch 0876 Toggle Bitwise Expression (09 Apr 2022)
-
BinarySearch 0877 Vertical Lines in Binary Tree (09 Apr 2022)
-
BinarySearch 0882 Tree with Distinct Parities (09 Apr 2022)
-
BinarySearch 0900 Largest Binary Search Subtree in Value (09 Apr 2022)
-
BinarySearch 0903 Sum of Nodes with Even Grandparent Values (09 Apr 2022)
-
BinarySearch 0913 Next Node on Its Right (09 Apr 2022)
-
BinarySearch 0921 Length of the Longest Path in an N-Ary Tree (09 Apr 2022)
-
BinarySearch 0952 Subtree with Maximum Average (09 Apr 2022)
-
BinarySearch 0957 Search in a Virtually Complete Binary Tree (09 Apr 2022)
-
BinarySearch 1021 Subtree with Maximum Value (09 Apr 2022)
-
Leetcode 0094. Binary Tree Inorder Traversal (09 Apr 2022)
-
Leetcode 0095 Unique Binary Search Trees II (09 Apr 2022)
-
Leetcode 0096. Unique Binary Search Trees (09 Apr 2022)
-
Leetcode 0098. Validate Binary Search Tree (09 Apr 2022)
-
Leetcode 0099. Recover Binary Search Tree (09 Apr 2022)
-
Leetcode 0100. Same Tree (09 Apr 2022)
-
Leetcode 0101 Symmetric Tree (09 Apr 2022)
-
Leetcode 0102. Binary Tree Level Order Traversal (09 Apr 2022)
-
Leetcode 0103. Binary Tree Zigzag Level Order Traversal (09 Apr 2022)
-
Leetcode 0104. Maximum Depth of Binary Tree (09 Apr 2022)
-
Leetcode 0105. Construct Binary Tree from Preorder and Inorder Traversal (09 Apr 2022)
-
Leetcode 0106. Construct Binary Tree from Inorder and Postorder Traversal (09 Apr 2022)
-
Leetcode 0107. Binary Tree Level Order Traversal II (09 Apr 2022)
-
Leetcode 0108. Convert Sorted Array to Binary Search Tree (09 Apr 2022)
-
Leetcode 0110. Balanced Binary Tree (09 Apr 2022)
-
Leetcode 0111. Minimum Depth of Binary Tree (09 Apr 2022)
-
Leetcode 0112 (09 Apr 2022)
-
Leetcode 0113. Path Sum II (09 Apr 2022)
-
Leetcode 0114. Flatten Binary Tree to Linked List (09 Apr 2022)
-
Leetcode 0116. Populating Next Right Pointers in Each Node (09 Apr 2022)
-
Leetcode 0117. Populating Next Right Pointers in Each Node II (09 Apr 2022)
-
Leetcode 0124. Binary Tree Maximum Path Sum (09 Apr 2022)
-
Leetcode 0129. Sum Root to Leaf Numbers (09 Apr 2022)
-
Leetcode 0144 Binary Tree Preorder Traversal (09 Apr 2022)
-
Leetcode 0145. Binary Tree Postorder Traversal (09 Apr 2022)
-
Leetcode 0156. Binary Tree Upside Down (09 Apr 2022)
-
Leetcode 0173. Binary Search Tree Iterator (09 Apr 2022)
-
Leetcode 0199. Binary Tree Right Side View (09 Apr 2022)
-
Leetcode 0222. Count Complete Tree Nodes (09 Apr 2022)
-
Leetcode 0226. Invert Binary Tree (09 Apr 2022)
-
Leetcode 0230. Kth Smallest Element in a BST (09 Apr 2022)
-
Leetcode 0235. Lowest Common Ancestor of a Binary Search Tree (09 Apr 2022)
-
Leetcode 0236. Lowest Common Ancestor of a Binary Tree (09 Apr 2022)
-
Leetcode 0250 Count Univalue Subtrees (09 Apr 2022)
-
Leetcode 0255 Verify Preorder Sequence in Binary Search Tree (09 Apr 2022)
-
Leetcode 0257 Binary Tree Paths (09 Apr 2022)
-
Leetcode 0270. Closest Binary Search Tree Value (09 Apr 2022)
-
Leetcode 0272 Closest Binary Search Tree Value II (09 Apr 2022)
-
Leetcode 0297. Serialize and Deserialize Binary Tree (09 Apr 2022)
-
Leetcode 0298. Binary Tree Longest Consecutive Sequence (09 Apr 2022)
-
Leetcode 0314. Binary Tree Vertical Order Traversal (09 Apr 2022)
-
Leetcode 0331. Verify Preorder Serialization of a Binary Tree (09 Apr 2022)
-
Leetcode 0333. Largest BST Subtree (09 Apr 2022)
-
Leetcode 0337. House Robber III (09 Apr 2022)
-
Leetcode 0366. Find Leaves of Binary Tree (09 Apr 2022)
-
Leetcode 0404. Sum of Left Leaves (09 Apr 2022)
-
Leetcode 0427 Construct Quad Tree (09 Apr 2022)
-
Leetcode 0428. Serialize and Deserialize N-ary Tree (09 Apr 2022)
-
Leetcode 0429. N-ary Tree Level Order Traversal (09 Apr 2022)
-
Leetcode 0431 Encode N-ary Tree to Binary Tree (09 Apr 2022)
-
Leetcode 0437. Path Sum III (09 Apr 2022)
-
Leetcode 0449. Serialize and Deserialize BST (09 Apr 2022)
-
Leetcode 0450. Delete Node in a BST (09 Apr 2022)
-
Leetcode 0501 Find Mode in Binary Search Tree (09 Apr 2022)
-
Leetcode 0510 Inorder Successor in BST II (09 Apr 2022)
-
Leetcode 0513 Find Bottom Left Tree Value (09 Apr 2022)
-
Leetcode 0515 Find Largest Value in Each Tree Row (09 Apr 2022)
-
Leetcode 0530 Minimum Absolute Difference in BST (09 Apr 2022)
-
Leetcode 0536 Construct Binary Tree from String (09 Apr 2022)
-
Leetcode 0538. Convert BST to Greater Tree (09 Apr 2022)
-
Leetcode 0543. Diameter of Binary Tree (09 Apr 2022)
-
Leetcode 0545 Boundary of Binary Tree (09 Apr 2022)
-
Leetcode 0549 Binary Tree Longest Consecutive Sequence II (09 Apr 2022)
-
Leetcode 0558 Logical OR of Two Binary Grids Represented as Quad-Trees (09 Apr 2022)
-
Leetcode 0559 Maximum Depth of N-ary Tree (09 Apr 2022)
-
Leetcode 0563. Binary Tree Tilt (09 Apr 2022)
-
Leetcode 0572 Subtree of Another Tree (09 Apr 2022)
-
Leetcode 0588 Design In-Memory File System (09 Apr 2022)
-
Leetcode 0589. N-ary Tree Preorder Traversal (09 Apr 2022)
-
Leetcode 0590 N-ary Tree Preorder Traversal (09 Apr 2022)
-
Leetcode 0606 Construct String from Binary Tree (09 Apr 2022)
-
Leetcode 0617 Merge Two Binary Trees (09 Apr 2022)
-
Leetcode 0623. Add One Row to Tree (09 Apr 2022)
-
Leetcode 0637. Average of Levels in Binary Tree (09 Apr 2022)
-
Leetcode 0652 Find Duplicate Subtrees (09 Apr 2022)
-
Leetcode 0654 Maximum Binary Tree (09 Apr 2022)
-
Leetcode 0655 Print Binary Tree (09 Apr 2022)
-
Leetcode 0662. Maximum Width of Binary Tree (09 Apr 2022)
-
Leetcode 0663 Equal Tree Partition (09 Apr 2022)
-
Leetcode 0666 Path Sum IV (09 Apr 2022)
-
Leetcode 0669. Trim a Binary Search Tree (09 Apr 2022)
-
Leetcode 0671 Second Minimum Node In a Binary Tree (09 Apr 2022)
-
Leetcode 0685 Redundant Connection II (09 Apr 2022)
-
Leetcode 0687 Longest Univalue Path (09 Apr 2022)
-
Leetcode 0700. Search in a Binary Search Tree (09 Apr 2022)
-
Leetcode 0701. Insert into a Binary Search Tree (09 Apr 2022)
-
Leetcode 0742 Closest Leaf in a Binary Tree (09 Apr 2022)
-
Leetcode 0783 Minimum Distance Between BST Nodes (09 Apr 2022)
-
Leetcode 0814. Binary Tree Pruning (09 Apr 2022)
-
Leetcode 0834 Sum of Distances in Tree (09 Apr 2022)
-
Leetcode 0865. Smallest Subtree with all the Deepest Nodes (09 Apr 2022)
-
Leetcode 0872 Leaf-Similar Trees (09 Apr 2022)
-
Leetcode 0889 Construct Binary Tree from Preorder and Postorder Traversal (09 Apr 2022)
-
Leetcode 0894 All Possible Full Binary Trees (09 Apr 2022)
-
Leetcode 0897. Increasing Order Search Tree (09 Apr 2022)
-
Leetcode 0919 Complete Binary Tree Inserter (09 Apr 2022)
-
Leetcode 0938. Range Sum of BST (09 Apr 2022)
-
Leetcode 0958. Check Completeness of a Binary Tree (09 Apr 2022)
-
Leetcode 0965. Univalued Binary Tree (09 Apr 2022)
-
Leetcode 0968. Binary Tree Cameras (09 Apr 2022)
-
Leetcode 0971. Flip Binary Tree To Match Preorder Traversal (09 Apr 2022)
-
Leetcode 0979. Distribute Coins in Binary Tree (09 Apr 2022)
-
Leetcode 0993. Cousins in Binary Tree (09 Apr 2022)
-
Leetcode 0998. Maximum Binary Tree II (09 Apr 2022)
-
Leetcode 1008 Construct Binary Search Tree from Preorder Traversal (09 Apr 2022)
-
Leetcode 1022. Sum of Root To Leaf Binary Numbers (09 Apr 2022)
-
Leetcode 1026. Maximum Difference Between Node and Ancestor (09 Apr 2022)
-
Leetcode 1028. Recover a Tree From Preorder Traversal (09 Apr 2022)
-
Leetcode 1038. Binary Search Tree to Greater Sum Tree (09 Apr 2022)
-
Leetcode 1080. Insufficient Nodes in Root to Leaf Paths (09 Apr 2022)
-
Leetcode 1110. Delete Nodes And Return Forest (09 Apr 2022)
-
Leetcode 1120 Maximum Average Subtree (09 Apr 2022)
-
Leetcode 1123. Lowest Common Ancestor of Deepest Leaves (09 Apr 2022)
-
Leetcode 1145. Binary Tree Coloring Game (09 Apr 2022)
-
Leetcode 1161. Maximum Level Sum of a Binary Tree (09 Apr 2022)
-
Leetcode 1167 Minimum Cost to Connect Sticks (09 Apr 2022)
-
Leetcode 1199 Minimum Time to Build Blocks (09 Apr 2022)
-
Leetcode 1245 Tree Diameter (09 Apr 2022)
-
Leetcode 1257 Smallest Common Region (09 Apr 2022)
-
Leetcode 1302. Deepest Leaves Sum (09 Apr 2022)
-
Leetcode 1305. All Elements in Two Binary Search Trees (09 Apr 2022)
-
Leetcode 1339. Maximum Product of Splitted Binary Tree (09 Apr 2022)
-
Leetcode 1373. Maximum Sum BST in Binary Tree (09 Apr 2022)
-
Leetcode 1377. Frog Position After T Seconds (09 Apr 2022)
-
Leetcode 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree (09 Apr 2022)
-
Leetcode 1448. Count Good Nodes in Binary Tree (09 Apr 2022)
-
Leetcode 1457. Pseudo-Palindromic Paths in a Binary Tree (09 Apr 2022)
-
Leetcode 1466. Reorder Routes to Make All Paths Lead to the City Zero (09 Apr 2022)
-
Leetcode 1469 Find All The Lonely Nodes (09 Apr 2022)
-
Leetcode 1485 Clone Binary Tree With Random Pointer (09 Apr 2022)
-
Leetcode 1522 Diameter of N-Ary Tree (09 Apr 2022)
-
Leetcode 1602 Find Nearest Right Node in Binary Tree (09 Apr 2022)
-
Leetcode 1612 Check If Two Expression Trees are Equivalent (09 Apr 2022)
-
Leetcode 1628 Design an Expression Tree With Evaluate Function (09 Apr 2022)
-
Leetcode 1644 Lowest Common Ancestor of a Binary Tree II (09 Apr 2022)
-
Leetcode 1660 Correct a Binary Tree (09 Apr 2022)
-
Leetcode 1666 Change the Root of a Binary Tree (09 Apr 2022)
-
Leetcode 1676 Lowest Common Ancestor of a Binary Tree IV (09 Apr 2022)
-
Leetcode 1719. Number Of Ways To Reconstruct A Tree (09 Apr 2022)
-
Leetcode 1740 Find Distance in a Binary Tree (09 Apr 2022)
-
Leetcode 1766 Tree of Coprimes (09 Apr 2022)
-
Leetcode 1896. Minimum Cost to Change the Final Value of Expression (09 Apr 2022)
-
Leetcode 1902 Depth of BST Given Insertion Order (09 Apr 2022)
-
Leetcode 1916. Count Ways to Build Rooms in an Ant Colony (09 Apr 2022)
-
Leetcode 1973 Count Nodes Equal to Sum of Descendants (09 Apr 2022)
-
Leetcode 2196. Create Binary Tree From Descriptions (09 Apr 2022)