Tag: recursion
-
BinarySearch 0067 Set Bits (09 Apr 2022)
-
BinarySearch 0069 Binary Search Tree Validation (09 Apr 2022)
-
BinarySearch 0071 Kth Smallest in a Binary Search Tree (09 Apr 2022)
-
BinarySearch 0072 Invert Tree (09 Apr 2022)
-
BinarySearch 0074 Search in a Binary Search Tree (09 Apr 2022)
-
BinarySearch 0091 Inorder Traversal (09 Apr 2022)
-
BinarySearch 0132 Height Balanced Tree (09 Apr 2022)
-
BinarySearch 0134 Count BST Nodes in a Range (09 Apr 2022)
-
BinarySearch 0145 String Expansion (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 0189 Delete Even Leaves (09 Apr 2022)
-
BinarySearch 0196 Convert to Full Binary Tree (09 Apr 2022)
-
BinarySearch 0211 Longest Tree Path (09 Apr 2022)
-
BinarySearch 0213 Phone Number Combinations (09 Apr 2022)
-
BinarySearch 0225 List to Binary Search Tree (09 Apr 2022)
-
BinarySearch 0229 Prime Factorization (09 Apr 2022)
-
BinarySearch 0230 Mindboggling (09 Apr 2022)
-
BinarySearch 0250 Linked List to Binary Search Tree (09 Apr 2022)
-
BinarySearch 0251 Univalue Tree (09 Apr 2022)
-
BinarySearch 0252 Cutting Binary Search Tree (09 Apr 2022)
-
BinarySearch 0275 Elephant Tree (09 Apr 2022)
-
BinarySearch 0293 Symmetric Binary Tree (09 Apr 2022)
-
BinarySearch 0294 Partition Tree (09 Apr 2022)
-
BinarySearch 0325 Tree From Pre/Inorder Traversals (09 Apr 2022)
-
BinarySearch 0331 Swappable Trees (09 Apr 2022)
-
BinarySearch 0336 Longest Even Value Path (09 Apr 2022)
-
BinarySearch 0338 Longest Even Sum Path (09 Apr 2022)
-
BinarySearch 0387 Country Roads (09 Apr 2022)
-
BinarySearch 0415 Anagram Difference (09 Apr 2022)
-
BinarySearch 0423 Parse Boolean Expression (09 Apr 2022)
-
BinarySearch 0433 Upside Down Numbers (09 Apr 2022)
-
BinarySearch 0446 Subtree (09 Apr 2022)
-
BinarySearch 0450 Digital Lake (09 Apr 2022)
-
BinarySearch 0453 Binary Tree Longest Consecutive Path (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 0549 Excel Spreadsheet (09 Apr 2022)
-
BinarySearch 0557 Diagonal Tree Traversal (09 Apr 2022)
-
BinarySearch 0559 Latin Square Solver (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 0601 Surrounded Islands (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 0628 Longest Substring with Character Count of at Least K (09 Apr 2022)
-
BinarySearch 0687 Counting K-Length Paths on Binary Tree (09 Apr 2022)
-
BinarySearch 0695 Partition Zero One Trees (09 Apr 2022)
-
BinarySearch 0741 Search Engine (09 Apr 2022)
-
BinarySearch 0762 Binary Search Tree Iterator Sequel (09 Apr 2022)
-
BinarySearch 0840 Lowest Common Ancestor of List of Values (09 Apr 2022)
-
BinarySearch 0844 Lexicographically Smallest Leaf to Root Path (09 Apr 2022)
-
BinarySearch 0845 Enclosed Islands (09 Apr 2022)
-
BinarySearch 0846 Tree Detection (09 Apr 2022)
-
BinarySearch 0849 Find a Linked List in a Binary Tree (09 Apr 2022)
-
BinarySearch 0850 Bitwise AND of Range of Numbers (09 Apr 2022)
-
BinarySearch 0858 Sum of Two Numbers in BSTs (09 Apr 2022)
-
BinarySearch 0864 Enlarge BST (09 Apr 2022)
-
BinarySearch 0874 Cluster Management (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 0903 Sum of Nodes with Even Grandparent Values (09 Apr 2022)
-
BinarySearch 0916 Leaf Pairs Less Than Target Distance Away (09 Apr 2022)
-
BinarySearch 0996 Integer to English (09 Apr 2022)
-
BinarySearch 1009 Intersection of Two Maps (09 Apr 2022)
-
BinarySearch 1036 Ways to Remove Leaves of a Tree (09 Apr 2022)
-
Leetcode 0017. Letter Combinations of a Phone Number (09 Apr 2022)
-
Leetcode 0022. Generate Parentheses (09 Apr 2022)
-
Leetcode 0050. Pow(x, n) (09 Apr 2022)
-
Leetcode 0081. Search in Rotated Sorted Array II (09 Apr 2022)
-
Leetcode 0089. Gray Code (09 Apr 2022)
-
Leetcode 0094. Binary Tree Inorder Traversal (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 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 0109. Convert Sorted List 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 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 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 0199. Binary Tree Right Side View (09 Apr 2022)
-
Leetcode 0200 Number of Islands (09 Apr 2022)
-
Leetcode 0201 Bitwise AND of Numbers Range (09 Apr 2022)
-
Leetcode 0211. Design Add and Search Words Data Structure (09 Apr 2022)
-
Leetcode 0216. Combination Sum III (09 Apr 2022)
-
Leetcode 0224. Basic Calculator (09 Apr 2022)
-
Leetcode 0226. Invert Binary Tree (09 Apr 2022)
-
Leetcode 0227. Basic Calculator II (09 Apr 2022)
-
Leetcode 0247. Strobogrammatic Number II (09 Apr 2022)
-
Leetcode 0248 Strobogrammatic Number III (09 Apr 2022)
-
Leetcode 0250 Count Univalue Subtrees (09 Apr 2022)
-
Leetcode 0273. Integer to English Words (09 Apr 2022)
-
Leetcode 0282. Expression Add Operators (09 Apr 2022)
-
Leetcode 0297. Serialize and Deserialize Binary Tree (09 Apr 2022)
-
Leetcode 0364. Nested List Weight Sum II (09 Apr 2022)
-
Leetcode 0390 Elimination Game (09 Apr 2022)
-
Leetcode 0394. Decode String (09 Apr 2022)
-
Leetcode 0395. Longest Substring with At Least K Repeating Characters (09 Apr 2022)
-
Leetcode 0426 Convert Binary Search Tree to Sorted Doubly Linked List (09 Apr 2022)
-
Leetcode 0427 Construct Quad Tree (09 Apr 2022)
-
Leetcode 0431 Encode N-ary Tree to Binary Tree (09 Apr 2022)
-
Leetcode 0437. Path Sum III (09 Apr 2022)
-
Leetcode 0501 Find Mode in Binary Search Tree (09 Apr 2022)
-
Leetcode 0536 Construct Binary Tree from String (09 Apr 2022)
-
Leetcode 0538. Convert BST to Greater Tree (09 Apr 2022)
-
Leetcode 0544 Output Contest Matches (09 Apr 2022)
-
Leetcode 0572 Subtree of Another Tree (09 Apr 2022)
-
Leetcode 0590 N-ary Tree Preorder Traversal (09 Apr 2022)
-
Leetcode 0623. Add One Row to Tree (09 Apr 2022)
-
Leetcode 0631 Design Excel Sum Formula (09 Apr 2022)
-
Leetcode 0654 Maximum Binary Tree (09 Apr 2022)
-
Leetcode 0655 Print Binary Tree (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 0726 Number of Atoms (09 Apr 2022)
-
Leetcode 0756 Pyramid Transition Matrix (09 Apr 2022)
-
Leetcode 0761 Special Binary String (09 Apr 2022)
-
Leetcode 0776 Split BST (09 Apr 2022)
-
Leetcode 0779 K-th Symbol in Grammar (09 Apr 2022)
-
Leetcode 0783 Minimum Distance Between BST Nodes (09 Apr 2022)
-
Leetcode 0794 Valid Tic-Tac-Toe State (09 Apr 2022)
-
Leetcode 0865. Smallest Subtree with all the Deepest Nodes (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 0932. Beautiful Array (09 Apr 2022)
-
Leetcode 0938. Range Sum of BST (09 Apr 2022)
-
Leetcode 0951. Flip Equivalent Binary Trees (09 Apr 2022)
-
Leetcode 0965. Univalued Binary Tree (09 Apr 2022)
-
Leetcode 0967. Numbers With Same Consecutive Differences (09 Apr 2022)
-
Leetcode 0979. Distribute Coins in Binary Tree (09 Apr 2022)
-
Leetcode 0988. Smallest String Starting From Leaf (09 Apr 2022)
-
Leetcode 0993. Cousins in Binary Tree (09 Apr 2022)
-
Leetcode 1006. Clumsy Factorial (09 Apr 2022)
-
Leetcode 1022. Sum of Root To Leaf Binary Numbers (09 Apr 2022)
-
Leetcode 1038. Binary Search Tree to Greater Sum Tree (09 Apr 2022)
-
Leetcode 1096. Brace Expansion II (09 Apr 2022)
-
Leetcode 1110. Delete Nodes And Return Forest (09 Apr 2022)
-
Leetcode 1254. Number of Closed Islands (09 Apr 2022)
-
Leetcode 1265 Print Immutable Linked List in Reverse (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 1506 Find Root of N-Ary Tree (09 Apr 2022)
-
Leetcode 1516 Move Sub-Tree of N-Ary Tree (09 Apr 2022)
-
Leetcode 1522 Diameter of N-Ary Tree (09 Apr 2022)
-
Leetcode 1530. Number of Good Leaf Nodes Pairs (09 Apr 2022)
-
Leetcode 1586 Binary Search Tree Iterator II (09 Apr 2022)
-
Leetcode 1597 Build Binary Expression Tree From Infix Expression (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 1740 Find Distance in a Binary Tree (09 Apr 2022)
-
Leetcode 1896. Minimum Cost to Change the Final Value of Expression (09 Apr 2022)
-
Leetcode 1982. Find Array Given Subset Sums (09 Apr 2022)