The Debugger - LeetCode Solution of LeetCode Problems Description This repository has solution of LeetCode problems. Linked List Title 2. Add Two Numbers 19. Remove Nth Node From End of List 21. Merge Two Sorted Lists 24. Swap Nodes in Pairs 61. Rotate List 82. Remove Duplicates from Sorted List II 83. Remove Duplicates from Sorted List 86. Partition List 92. Reverse Linked List II 109. Convert Sorted List to Binary Search Tree 114. Flatten Binary Tree to Linked List 138. Copy List with Random Pointer 141. Linked List Cycle 142. Linked List Cycle II 143. Reorder List 147. Insertion Sort List 148. Sort List 160. Intersection of Two Linked Lists 203. Remove Linked List Elements 206. Reverse Linked List 234. Palindrome Linked List 237. Delete Node in a Linked List 328. Odd Even Linked List 355. Design Twitter 382. Linked List Random Node 430. Flatten a Multilevel Doubly Linked List 445. Add Two Numbers II 622. Design Circular Queue 705. Design HashSet 707. Design Linked List 876. Middle of the Linked List 1290. Convert Binary Number in a Linked List to Integer 1367. Linked List in Binary Tree 1472. Design Browser History 1669. Merge In Between Linked Lists 1721. Swapping Nodes in a Linked List Stack Title 20. Valid Parentheses 32. Longest Valid Parentheses 42. Trapping Rain Water 94. Binary Tree Inorder Traversal 114. Flatten Binary Tree to Linked List 143. Reorder List 144. Binary Tree Preorder Traversal 145. Binary Tree Postorder Traversal 150. Evaluate Reverse Polish Notation 155. Min Stack 173. Binary Search Tree Iterator 225. Implement Stack using Queues 232. Implement Queue using Stacks 234. Palindrome Linked List 316. Remove Duplicate Letters 402. Remove K Digits 445. Add Two Numbers II 456. 132 Pattern 589. N-ary Tree Preorder Traversal 590. N-ary Tree Postorder Traversal 654. Maximum Binary Tree 678. Valid Parenthesis String 682. Baseball Game 735. Asteroid Collision 739. Daily Temperatures 844. Backspace String Compare 897. Increasing Order Search Tree 1008. Construct Binary Search Tree from Preorder Traversal 1021. Remove Outermost Parentheses 1047. Remove All Adjacent Duplicates In String 1441. Build an Array With Stack Operations 1472. Design Browser History 1598. Crawler Log Folder 1700. Number of Students Unable to Eat Lunch Queue Title 225. Implement Stack using Queues 232. Implement Queue using Stacks 387. First Unique Character in a String 622. Design Circular Queue 1352. Product of the Last K Numbers 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit 1700. Number of Students Unable to Eat Lunch Tree/Binary Tree Title 94. Binary Tree Inorder Traversal 96. Unique Binary Search Trees 98. Validate Binary Search Tree 99. Recover Binary Search Tree 100. Same Tree 101. Symmetric Tree 102. Binary Tree Level Order Traversal 104. Maximum Depth of Binary Tree 105. Construct Binary Tree from Preorder and Inorder Traversal 106. Construct Binary Tree from Inorder and Postorder Traversal 108. Convert Sorted Array to Binary Search Tree 109. Convert Sorted List to Binary Search Tree 110. Balanced Binary Tree 111. Minimum Depth of Binary Tree 112. Path Sum 113. Path Sum II 114. Flatten Binary Tree to Linked List 116. Populating Next Right Pointers in Each Node 117. Populating Next Right Pointers in Each Node II 129. Sum Root to Leaf Numbers 144. Binary Tree Preorder Traversal 145. Binary Tree Postorder Traversal 173. Binary Search Tree Iterator 199. Binary Tree Right Side View 222. Count Complete Tree Nodes 226. Invert Binary Tree 230. Kth Smallest Element in a BST 235. Lowest Common Ancestor of a Binary Search Tree 257. Binary Tree Paths 337. House Robber III 404. Sum of Left Leaves 437. Path Sum III 450. Delete Node in a BST 508. Most Frequent Subtree Sum 513. Find Bottom Left Tree Value 515. Find Largest Value in Each Tree Row 530. Minimum Absolute Difference in BST 543. Diameter of Binary Tree 559. Maximum Depth of N-ary Tree 563. Binary Tree Tilt 572. Subtree of Another Tree 589. N-ary Tree Preorder Traversal 590. N-ary Tree Postorder Traversal 606. Construct String from Binary Tree 617. Merge Two Binary Trees 623. Add One Row to Tree 637. Average of Levels in Binary Tree 653. Two Sum IV - Input is a BST 654. Maximum Binary Tree 669. Trim a Binary Search Tree 671. Second Minimum Node In a Binary Tree 687. Longest Univalue Path 700. Search in a Binary Search Tree 703. Kth Largest Element in a Stream 783. Minimum Distance Between BST Nodes 814. Binary Tree Pruning 865. Smallest Subtree with all the Deepest Nodes 872. Leaf-Similar Trees 889. Construct Binary Tree from Preorder and Postorder Traversal 894. All Possible Full Binary Trees 897. Increasing Order Search Tree 919. Complete Binary Tree Inserter 938. Range Sum of BST 951. Flip Equivalent Binary Trees 958. Check Completeness of a Binary Tree 965. Univalued Binary Tree 971. Flip Binary Tree To Match Preorder Traversal 979. Distribute Coins in Binary Tree 988. Smallest String Starting From Leaf 1008. Construct Binary Search Tree from Preorder Traversal 1022. Sum of Root To Leaf Binary Numbers 1026. Maximum Difference Between Node and Ancestor 1038. Binary Search Tree to Greater Sum Tree 1080. Insufficient Nodes in Root to Leaf Paths 1110. Delete Nodes And Return Forest 1123. Lowest Common Ancestor of Deepest Leaves 1161. Maximum Level Sum of a Binary Tree 1261. Find Elements in a Contaminated Binary Tree 1302. Deepest Leaves Sum 1305. All Elements in Two Binary Search Trees 1315. Sum of Nodes with Even-Valued Grandparent 1325. Delete Leaves With a Given Value 1339. Maximum Product of Splitted Binary Tree 1367. Linked List in Binary Tree 1372. Longest ZigZag Path in a Binary Tree 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 1382. Balance a Binary Search Tree 1448. Count Good Nodes in Binary Tree Authors @Gul Ershad Acknowledgments LeetCode