├── README.md └── solutions ├── 1. Two Sum ├── README.md └── solution.py ├── 100. Same Tree ├── README.md ├── approach1.py ├── approach2.py ├── example1.jpeg ├── example2.jpeg └── example3.jpeg ├── 102. Binary Tree Level Order Traversal ├── README.md ├── approach1.py ├── approach2.py └── example1.jpeg ├── 104. Maximum Depth of Binary Tree ├── README.md ├── approach1.py ├── approach2.py ├── example1.jpeg └── thought1.png ├── 105. Construct Binary Tree from Preorder and Inorder Traversal ├── README.md ├── example1.jpeg └── solution.py ├── 11. Container With Most Water ├── README.md ├── example1.png └── thought.png ├── 1143. Longest Common Subsequence ├── README.md └── solution.py ├── 121. Best Time to Buy and Sell Stock ├── README.md └── solution.py ├── 124. Binary Tree Maximum Path Sum ├── README.md ├── example1.jpeg ├── example2.jpeg └── solution.py ├── 125. Valid Palindrome ├── README.md ├── approach1.py └── approach2.py ├── 128. Longest Consecutive Sequence ├── README.md ├── approach1.py └── approach2.py ├── 133. Clone Graph ├── README.md ├── approach1.py ├── approach2.py ├── example1.png └── example2.png ├── 139. Word Break ├── README.md └── solution.py ├── 141. Linked List Cycle ├── README.md ├── approach1.py ├── approach2.py ├── example1.png ├── example2.png └── example3.png ├── 143. Reorder List ├── README.md ├── example1.jpeg ├── example2.jpeg └── solution.py ├── 15. 3Sum ├── README.md ├── approach1.py └── approach2.py ├── 152. Maximum Product Subarray ├── README.md └── solution.py ├── 153. Find Minimum in Rotated Sorted Array ├── README.md └── solution.py ├── 19. Remove Nth Node From End of List ├── README.md ├── example1.jpeg └── solution.py ├── 190. Reverse Bits ├── README.md └── solution.py ├── 191. Number of 1 Bits ├── README.md └── solution.py ├── 198. House Robber ├── README.md └── solution.py ├── 20. Valid Parentheses ├── README.md └── approach1.py ├── 200. Number of Islands ├── README.md └── solution.py ├── 206. Reverse Linked List ├── README.md ├── approach1.py ├── approach2.py ├── example1.jpeg ├── example2.jpeg ├── solution2.png └── thought1.png ├── 207. Course Schedule ├── README.md └── solution.py ├── 208. Implement Trie (Prefix Tree) ├── README.md └── solution.py ├── 21. Merge Two Sorted Lists ├── README.md ├── approach1.py ├── approach2.py └── example1.png ├── 211. Design Add and Search Words Data Structure ├── README.md └── solution.py ├── 212. Word Search II ├── README.md ├── example1.jpeg ├── example2.jpeg └── solution.py ├── 213. House Robber II ├── README.md └── solution.py ├── 217. Contains Duplicate ├── README.md ├── approach1.py └── approach2.py ├── 226. Invert Binary Tree ├── README.md ├── approach1.py ├── approach2.py ├── example1.jpeg └── example2.jpeg ├── 23. Merge k Sorted Lists ├── README.md └── solution.py ├── 230. Kth Smallest Element in a BST ├── README.md ├── approach1.py ├── approach2.py ├── example1.jpeg └── example2.jpeg ├── 235. Lowest Common Ancestor of a Binary Search Tree ├── README.md ├── approach1.py ├── approach2.py ├── example1.png └── example2.png ├── 238. Product of Array Except Self ├── README.md ├── approach1.py └── approach2.py ├── 242. Valid Anagram ├── README.md └── solution.py ├── 252. Meeting Rooms ├── README.md └── solution.py ├── 253. Meeting Rooms II ├── README.md ├── image1.png ├── image2.png └── solution.py ├── 261. Graph Valid Tree ├── README.md ├── example1.jpeg ├── example2.jpeg └── solution.py ├── 268. Missing Number ├── README.md └── solution.py ├── 269. Alien Dictionary ├── README.md └── solution.py ├── 271. Encode and Decode Strings ├── README.md ├── approach1.py └── approach2.py ├── 295. Find Median from Data Stream ├── README.md └── solution.py ├── 297. Serialize and Deserialize Binary Tree ├── README.md ├── example1.jpeg └── solution.py ├── 3. Longest Substring Without Repeating Characters ├── README.md ├── approach1.py └── approach2.py ├── 300. Longest Increasing Subsequence ├── README.md └── solution.py ├── 322. Coin Change ├── README.md └── solution.py ├── 323. Number of Connected Components in an Undirected Graph ├── README.md ├── approach1.py ├── approach2.py ├── example1.jpeg └── example2.jpeg ├── 33. Search in Rotated Sorted Array ├── README.md └── solution.py ├── 338. Counting Bits ├── README.md ├── image1.png └── solution.py ├── 347. Top K Frequent Elements ├── README.md ├── approach1.py └── approach2.py ├── 36. Valid Sudoku ├── README.md ├── approach1.py ├── approach2.py └── example1.png ├── 371. Sum of Two Integers ├── README.md ├── image.png └── solution.py ├── 39. Combination Sum ├── README.md └── solution.py ├── 417. Pacific Atlantic Water Flow ├── README.md ├── example1.jpeg └── solution.py ├── 424. Longest Repeating Character Replacement ├── README.md ├── approach1.py └── approach2.py ├── 435. Non-overlapping Intervals ├── README.md ├── image1.png ├── image2.png └── solution.py ├── 48. Rotate Image ├── README.md ├── example1.jpeg ├── example2.jpeg └── solution.py ├── 49. Group Anagrams ├── README.md └── solution.py ├── 5. Longest Palindromic Substring ├── README.md ├── approach1.py ├── approach2.py ├── dp_solution.py └── thought.png ├── 53. Maximum Subarray ├── README.md └── solution.py ├── 54. Spiral Matrix ├── README.md ├── example1.jpeg ├── example2.jpeg └── solution.py ├── 55. Jump Game ├── README.md └── solution.py ├── 56. Merge Intervals ├── README.md ├── image1.png └── solution.py ├── 57. Insert Interval ├── README.md └── solution.py ├── 572. Subtree of Another Tree ├── README.md ├── approach1.py ├── example1.jpeg ├── example2.jpeg ├── solution2-1.png ├── solution2-2.png ├── solution2-3.png ├── solution2-4.png └── solution2-5.png ├── 62. Unique Paths ├── README.md ├── example1.png └── solution.py ├── 647. Palindromic Substrings ├── README.md └── solution.py ├── 70. Climbing Stairs ├── README.md └── solution.py ├── 73. Set Matrix Zeroes ├── README.md ├── example1.jpeg ├── example2.jpeg └── solution.py ├── 76. Minimum Window Substring ├── README.md ├── approach1.py └── approach2.py ├── 79. Word Search ├── README.md ├── example1.jpeg ├── example2.jpeg ├── example3.jpeg └── solution.py ├── 91. Decode Ways ├── README.md ├── approach1.py └── approach2.py └── 98. Validate Binary Search Tree ├── README.md ├── approach1.py ├── approach2.py ├── example1.jpeg ├── example2.jpeg ├── solution1-1.png └── solution1-2.png /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/README.md -------------------------------------------------------------------------------- /solutions/1. Two Sum/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/1. Two Sum/README.md -------------------------------------------------------------------------------- /solutions/1. Two Sum/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/1. Two Sum/solution.py -------------------------------------------------------------------------------- /solutions/100. Same Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/100. Same Tree/README.md -------------------------------------------------------------------------------- /solutions/100. Same Tree/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/100. Same Tree/approach1.py -------------------------------------------------------------------------------- /solutions/100. Same Tree/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/100. Same Tree/approach2.py -------------------------------------------------------------------------------- /solutions/100. Same Tree/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/100. Same Tree/example1.jpeg -------------------------------------------------------------------------------- /solutions/100. Same Tree/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/100. Same Tree/example2.jpeg -------------------------------------------------------------------------------- /solutions/100. Same Tree/example3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/100. Same Tree/example3.jpeg -------------------------------------------------------------------------------- /solutions/102. Binary Tree Level Order Traversal/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/102. Binary Tree Level Order Traversal/README.md -------------------------------------------------------------------------------- /solutions/102. Binary Tree Level Order Traversal/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/102. Binary Tree Level Order Traversal/approach1.py -------------------------------------------------------------------------------- /solutions/102. Binary Tree Level Order Traversal/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/102. Binary Tree Level Order Traversal/approach2.py -------------------------------------------------------------------------------- /solutions/102. Binary Tree Level Order Traversal/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/102. Binary Tree Level Order Traversal/example1.jpeg -------------------------------------------------------------------------------- /solutions/104. Maximum Depth of Binary Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/104. Maximum Depth of Binary Tree/README.md -------------------------------------------------------------------------------- /solutions/104. Maximum Depth of Binary Tree/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/104. Maximum Depth of Binary Tree/approach1.py -------------------------------------------------------------------------------- /solutions/104. Maximum Depth of Binary Tree/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/104. Maximum Depth of Binary Tree/approach2.py -------------------------------------------------------------------------------- /solutions/104. Maximum Depth of Binary Tree/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/104. Maximum Depth of Binary Tree/example1.jpeg -------------------------------------------------------------------------------- /solutions/104. Maximum Depth of Binary Tree/thought1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/104. Maximum Depth of Binary Tree/thought1.png -------------------------------------------------------------------------------- /solutions/105. Construct Binary Tree from Preorder and Inorder Traversal/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/105. Construct Binary Tree from Preorder and Inorder Traversal/README.md -------------------------------------------------------------------------------- /solutions/105. Construct Binary Tree from Preorder and Inorder Traversal/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/105. Construct Binary Tree from Preorder and Inorder Traversal/example1.jpeg -------------------------------------------------------------------------------- /solutions/105. Construct Binary Tree from Preorder and Inorder Traversal/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/105. Construct Binary Tree from Preorder and Inorder Traversal/solution.py -------------------------------------------------------------------------------- /solutions/11. Container With Most Water/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/11. Container With Most Water/README.md -------------------------------------------------------------------------------- /solutions/11. Container With Most Water/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/11. Container With Most Water/example1.png -------------------------------------------------------------------------------- /solutions/11. Container With Most Water/thought.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/11. Container With Most Water/thought.png -------------------------------------------------------------------------------- /solutions/1143. Longest Common Subsequence/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/1143. Longest Common Subsequence/README.md -------------------------------------------------------------------------------- /solutions/1143. Longest Common Subsequence/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/1143. Longest Common Subsequence/solution.py -------------------------------------------------------------------------------- /solutions/121. Best Time to Buy and Sell Stock/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/121. Best Time to Buy and Sell Stock/README.md -------------------------------------------------------------------------------- /solutions/121. Best Time to Buy and Sell Stock/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/121. Best Time to Buy and Sell Stock/solution.py -------------------------------------------------------------------------------- /solutions/124. Binary Tree Maximum Path Sum/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/124. Binary Tree Maximum Path Sum/README.md -------------------------------------------------------------------------------- /solutions/124. Binary Tree Maximum Path Sum/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/124. Binary Tree Maximum Path Sum/example1.jpeg -------------------------------------------------------------------------------- /solutions/124. Binary Tree Maximum Path Sum/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/124. Binary Tree Maximum Path Sum/example2.jpeg -------------------------------------------------------------------------------- /solutions/124. Binary Tree Maximum Path Sum/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/124. Binary Tree Maximum Path Sum/solution.py -------------------------------------------------------------------------------- /solutions/125. Valid Palindrome/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/125. Valid Palindrome/README.md -------------------------------------------------------------------------------- /solutions/125. Valid Palindrome/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/125. Valid Palindrome/approach1.py -------------------------------------------------------------------------------- /solutions/125. Valid Palindrome/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/125. Valid Palindrome/approach2.py -------------------------------------------------------------------------------- /solutions/128. Longest Consecutive Sequence/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/128. Longest Consecutive Sequence/README.md -------------------------------------------------------------------------------- /solutions/128. Longest Consecutive Sequence/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/128. Longest Consecutive Sequence/approach1.py -------------------------------------------------------------------------------- /solutions/128. Longest Consecutive Sequence/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/128. Longest Consecutive Sequence/approach2.py -------------------------------------------------------------------------------- /solutions/133. Clone Graph/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/133. Clone Graph/README.md -------------------------------------------------------------------------------- /solutions/133. Clone Graph/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/133. Clone Graph/approach1.py -------------------------------------------------------------------------------- /solutions/133. Clone Graph/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/133. Clone Graph/approach2.py -------------------------------------------------------------------------------- /solutions/133. Clone Graph/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/133. Clone Graph/example1.png -------------------------------------------------------------------------------- /solutions/133. Clone Graph/example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/133. Clone Graph/example2.png -------------------------------------------------------------------------------- /solutions/139. Word Break/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/139. Word Break/README.md -------------------------------------------------------------------------------- /solutions/139. Word Break/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/139. Word Break/solution.py -------------------------------------------------------------------------------- /solutions/141. Linked List Cycle/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/141. Linked List Cycle/README.md -------------------------------------------------------------------------------- /solutions/141. Linked List Cycle/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/141. Linked List Cycle/approach1.py -------------------------------------------------------------------------------- /solutions/141. Linked List Cycle/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/141. Linked List Cycle/approach2.py -------------------------------------------------------------------------------- /solutions/141. Linked List Cycle/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/141. Linked List Cycle/example1.png -------------------------------------------------------------------------------- /solutions/141. Linked List Cycle/example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/141. Linked List Cycle/example2.png -------------------------------------------------------------------------------- /solutions/141. Linked List Cycle/example3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/141. Linked List Cycle/example3.png -------------------------------------------------------------------------------- /solutions/143. Reorder List/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/143. Reorder List/README.md -------------------------------------------------------------------------------- /solutions/143. Reorder List/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/143. Reorder List/example1.jpeg -------------------------------------------------------------------------------- /solutions/143. Reorder List/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/143. Reorder List/example2.jpeg -------------------------------------------------------------------------------- /solutions/143. Reorder List/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/143. Reorder List/solution.py -------------------------------------------------------------------------------- /solutions/15. 3Sum/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/15. 3Sum/README.md -------------------------------------------------------------------------------- /solutions/15. 3Sum/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/15. 3Sum/approach1.py -------------------------------------------------------------------------------- /solutions/15. 3Sum/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/15. 3Sum/approach2.py -------------------------------------------------------------------------------- /solutions/152. Maximum Product Subarray/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/152. Maximum Product Subarray/README.md -------------------------------------------------------------------------------- /solutions/152. Maximum Product Subarray/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/152. Maximum Product Subarray/solution.py -------------------------------------------------------------------------------- /solutions/153. Find Minimum in Rotated Sorted Array/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/153. Find Minimum in Rotated Sorted Array/README.md -------------------------------------------------------------------------------- /solutions/153. Find Minimum in Rotated Sorted Array/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/153. Find Minimum in Rotated Sorted Array/solution.py -------------------------------------------------------------------------------- /solutions/19. Remove Nth Node From End of List/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/19. Remove Nth Node From End of List/README.md -------------------------------------------------------------------------------- /solutions/19. Remove Nth Node From End of List/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/19. Remove Nth Node From End of List/example1.jpeg -------------------------------------------------------------------------------- /solutions/19. Remove Nth Node From End of List/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/19. Remove Nth Node From End of List/solution.py -------------------------------------------------------------------------------- /solutions/190. Reverse Bits/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/190. Reverse Bits/README.md -------------------------------------------------------------------------------- /solutions/190. Reverse Bits/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/190. Reverse Bits/solution.py -------------------------------------------------------------------------------- /solutions/191. Number of 1 Bits/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/191. Number of 1 Bits/README.md -------------------------------------------------------------------------------- /solutions/191. Number of 1 Bits/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/191. Number of 1 Bits/solution.py -------------------------------------------------------------------------------- /solutions/198. House Robber/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/198. House Robber/README.md -------------------------------------------------------------------------------- /solutions/198. House Robber/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/198. House Robber/solution.py -------------------------------------------------------------------------------- /solutions/20. Valid Parentheses/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/20. Valid Parentheses/README.md -------------------------------------------------------------------------------- /solutions/20. Valid Parentheses/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/20. Valid Parentheses/approach1.py -------------------------------------------------------------------------------- /solutions/200. Number of Islands/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/200. Number of Islands/README.md -------------------------------------------------------------------------------- /solutions/200. Number of Islands/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/200. Number of Islands/solution.py -------------------------------------------------------------------------------- /solutions/206. Reverse Linked List/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/206. Reverse Linked List/README.md -------------------------------------------------------------------------------- /solutions/206. Reverse Linked List/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/206. Reverse Linked List/approach1.py -------------------------------------------------------------------------------- /solutions/206. Reverse Linked List/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/206. Reverse Linked List/approach2.py -------------------------------------------------------------------------------- /solutions/206. Reverse Linked List/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/206. Reverse Linked List/example1.jpeg -------------------------------------------------------------------------------- /solutions/206. Reverse Linked List/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/206. Reverse Linked List/example2.jpeg -------------------------------------------------------------------------------- /solutions/206. Reverse Linked List/solution2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/206. Reverse Linked List/solution2.png -------------------------------------------------------------------------------- /solutions/206. Reverse Linked List/thought1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/206. Reverse Linked List/thought1.png -------------------------------------------------------------------------------- /solutions/207. Course Schedule/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/207. Course Schedule/README.md -------------------------------------------------------------------------------- /solutions/207. Course Schedule/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/207. Course Schedule/solution.py -------------------------------------------------------------------------------- /solutions/208. Implement Trie (Prefix Tree)/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/208. Implement Trie (Prefix Tree)/README.md -------------------------------------------------------------------------------- /solutions/208. Implement Trie (Prefix Tree)/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/208. Implement Trie (Prefix Tree)/solution.py -------------------------------------------------------------------------------- /solutions/21. Merge Two Sorted Lists/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/21. Merge Two Sorted Lists/README.md -------------------------------------------------------------------------------- /solutions/21. Merge Two Sorted Lists/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/21. Merge Two Sorted Lists/approach1.py -------------------------------------------------------------------------------- /solutions/21. Merge Two Sorted Lists/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/21. Merge Two Sorted Lists/approach2.py -------------------------------------------------------------------------------- /solutions/21. Merge Two Sorted Lists/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/21. Merge Two Sorted Lists/example1.png -------------------------------------------------------------------------------- /solutions/211. Design Add and Search Words Data Structure/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/211. Design Add and Search Words Data Structure/README.md -------------------------------------------------------------------------------- /solutions/211. Design Add and Search Words Data Structure/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/211. Design Add and Search Words Data Structure/solution.py -------------------------------------------------------------------------------- /solutions/212. Word Search II/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/212. Word Search II/README.md -------------------------------------------------------------------------------- /solutions/212. Word Search II/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/212. Word Search II/example1.jpeg -------------------------------------------------------------------------------- /solutions/212. Word Search II/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/212. Word Search II/example2.jpeg -------------------------------------------------------------------------------- /solutions/212. Word Search II/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/212. Word Search II/solution.py -------------------------------------------------------------------------------- /solutions/213. House Robber II/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/213. House Robber II/README.md -------------------------------------------------------------------------------- /solutions/213. House Robber II/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/213. House Robber II/solution.py -------------------------------------------------------------------------------- /solutions/217. Contains Duplicate/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/217. Contains Duplicate/README.md -------------------------------------------------------------------------------- /solutions/217. Contains Duplicate/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/217. Contains Duplicate/approach1.py -------------------------------------------------------------------------------- /solutions/217. Contains Duplicate/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/217. Contains Duplicate/approach2.py -------------------------------------------------------------------------------- /solutions/226. Invert Binary Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/226. Invert Binary Tree/README.md -------------------------------------------------------------------------------- /solutions/226. Invert Binary Tree/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/226. Invert Binary Tree/approach1.py -------------------------------------------------------------------------------- /solutions/226. Invert Binary Tree/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/226. Invert Binary Tree/approach2.py -------------------------------------------------------------------------------- /solutions/226. Invert Binary Tree/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/226. Invert Binary Tree/example1.jpeg -------------------------------------------------------------------------------- /solutions/226. Invert Binary Tree/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/226. Invert Binary Tree/example2.jpeg -------------------------------------------------------------------------------- /solutions/23. Merge k Sorted Lists/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/23. Merge k Sorted Lists/README.md -------------------------------------------------------------------------------- /solutions/23. Merge k Sorted Lists/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/23. Merge k Sorted Lists/solution.py -------------------------------------------------------------------------------- /solutions/230. Kth Smallest Element in a BST/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/230. Kth Smallest Element in a BST/README.md -------------------------------------------------------------------------------- /solutions/230. Kth Smallest Element in a BST/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/230. Kth Smallest Element in a BST/approach1.py -------------------------------------------------------------------------------- /solutions/230. Kth Smallest Element in a BST/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/230. Kth Smallest Element in a BST/approach2.py -------------------------------------------------------------------------------- /solutions/230. Kth Smallest Element in a BST/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/230. Kth Smallest Element in a BST/example1.jpeg -------------------------------------------------------------------------------- /solutions/230. Kth Smallest Element in a BST/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/230. Kth Smallest Element in a BST/example2.jpeg -------------------------------------------------------------------------------- /solutions/235. Lowest Common Ancestor of a Binary Search Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/235. Lowest Common Ancestor of a Binary Search Tree/README.md -------------------------------------------------------------------------------- /solutions/235. Lowest Common Ancestor of a Binary Search Tree/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/235. Lowest Common Ancestor of a Binary Search Tree/approach1.py -------------------------------------------------------------------------------- /solutions/235. Lowest Common Ancestor of a Binary Search Tree/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/235. Lowest Common Ancestor of a Binary Search Tree/approach2.py -------------------------------------------------------------------------------- /solutions/235. Lowest Common Ancestor of a Binary Search Tree/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/235. Lowest Common Ancestor of a Binary Search Tree/example1.png -------------------------------------------------------------------------------- /solutions/235. Lowest Common Ancestor of a Binary Search Tree/example2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/235. Lowest Common Ancestor of a Binary Search Tree/example2.png -------------------------------------------------------------------------------- /solutions/238. Product of Array Except Self/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/238. Product of Array Except Self/README.md -------------------------------------------------------------------------------- /solutions/238. Product of Array Except Self/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/238. Product of Array Except Self/approach1.py -------------------------------------------------------------------------------- /solutions/238. Product of Array Except Self/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/238. Product of Array Except Self/approach2.py -------------------------------------------------------------------------------- /solutions/242. Valid Anagram/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/242. Valid Anagram/README.md -------------------------------------------------------------------------------- /solutions/242. Valid Anagram/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/242. Valid Anagram/solution.py -------------------------------------------------------------------------------- /solutions/252. Meeting Rooms/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/252. Meeting Rooms/README.md -------------------------------------------------------------------------------- /solutions/252. Meeting Rooms/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/252. Meeting Rooms/solution.py -------------------------------------------------------------------------------- /solutions/253. Meeting Rooms II/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/253. Meeting Rooms II/README.md -------------------------------------------------------------------------------- /solutions/253. Meeting Rooms II/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/253. Meeting Rooms II/image1.png -------------------------------------------------------------------------------- /solutions/253. Meeting Rooms II/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/253. Meeting Rooms II/image2.png -------------------------------------------------------------------------------- /solutions/253. Meeting Rooms II/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/253. Meeting Rooms II/solution.py -------------------------------------------------------------------------------- /solutions/261. Graph Valid Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/261. Graph Valid Tree/README.md -------------------------------------------------------------------------------- /solutions/261. Graph Valid Tree/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/261. Graph Valid Tree/example1.jpeg -------------------------------------------------------------------------------- /solutions/261. Graph Valid Tree/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/261. Graph Valid Tree/example2.jpeg -------------------------------------------------------------------------------- /solutions/261. Graph Valid Tree/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/261. Graph Valid Tree/solution.py -------------------------------------------------------------------------------- /solutions/268. Missing Number/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/268. Missing Number/README.md -------------------------------------------------------------------------------- /solutions/268. Missing Number/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/268. Missing Number/solution.py -------------------------------------------------------------------------------- /solutions/269. Alien Dictionary/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/269. Alien Dictionary/README.md -------------------------------------------------------------------------------- /solutions/269. Alien Dictionary/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/269. Alien Dictionary/solution.py -------------------------------------------------------------------------------- /solutions/271. Encode and Decode Strings/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/271. Encode and Decode Strings/README.md -------------------------------------------------------------------------------- /solutions/271. Encode and Decode Strings/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/271. Encode and Decode Strings/approach1.py -------------------------------------------------------------------------------- /solutions/271. Encode and Decode Strings/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/271. Encode and Decode Strings/approach2.py -------------------------------------------------------------------------------- /solutions/295. Find Median from Data Stream/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/295. Find Median from Data Stream/README.md -------------------------------------------------------------------------------- /solutions/295. Find Median from Data Stream/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/295. Find Median from Data Stream/solution.py -------------------------------------------------------------------------------- /solutions/297. Serialize and Deserialize Binary Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/297. Serialize and Deserialize Binary Tree/README.md -------------------------------------------------------------------------------- /solutions/297. Serialize and Deserialize Binary Tree/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/297. Serialize and Deserialize Binary Tree/example1.jpeg -------------------------------------------------------------------------------- /solutions/297. Serialize and Deserialize Binary Tree/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/297. Serialize and Deserialize Binary Tree/solution.py -------------------------------------------------------------------------------- /solutions/3. Longest Substring Without Repeating Characters/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/3. Longest Substring Without Repeating Characters/README.md -------------------------------------------------------------------------------- /solutions/3. Longest Substring Without Repeating Characters/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/3. Longest Substring Without Repeating Characters/approach1.py -------------------------------------------------------------------------------- /solutions/3. Longest Substring Without Repeating Characters/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/3. Longest Substring Without Repeating Characters/approach2.py -------------------------------------------------------------------------------- /solutions/300. Longest Increasing Subsequence/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/300. Longest Increasing Subsequence/README.md -------------------------------------------------------------------------------- /solutions/300. Longest Increasing Subsequence/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/300. Longest Increasing Subsequence/solution.py -------------------------------------------------------------------------------- /solutions/322. Coin Change/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/322. Coin Change/README.md -------------------------------------------------------------------------------- /solutions/322. Coin Change/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/322. Coin Change/solution.py -------------------------------------------------------------------------------- /solutions/323. Number of Connected Components in an Undirected Graph/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/323. Number of Connected Components in an Undirected Graph/README.md -------------------------------------------------------------------------------- /solutions/323. Number of Connected Components in an Undirected Graph/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/323. Number of Connected Components in an Undirected Graph/approach1.py -------------------------------------------------------------------------------- /solutions/323. Number of Connected Components in an Undirected Graph/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/323. Number of Connected Components in an Undirected Graph/approach2.py -------------------------------------------------------------------------------- /solutions/323. Number of Connected Components in an Undirected Graph/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/323. Number of Connected Components in an Undirected Graph/example1.jpeg -------------------------------------------------------------------------------- /solutions/323. Number of Connected Components in an Undirected Graph/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/323. Number of Connected Components in an Undirected Graph/example2.jpeg -------------------------------------------------------------------------------- /solutions/33. Search in Rotated Sorted Array/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/33. Search in Rotated Sorted Array/README.md -------------------------------------------------------------------------------- /solutions/33. Search in Rotated Sorted Array/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/33. Search in Rotated Sorted Array/solution.py -------------------------------------------------------------------------------- /solutions/338. Counting Bits/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/338. Counting Bits/README.md -------------------------------------------------------------------------------- /solutions/338. Counting Bits/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/338. Counting Bits/image1.png -------------------------------------------------------------------------------- /solutions/338. Counting Bits/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/338. Counting Bits/solution.py -------------------------------------------------------------------------------- /solutions/347. Top K Frequent Elements/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/347. Top K Frequent Elements/README.md -------------------------------------------------------------------------------- /solutions/347. Top K Frequent Elements/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/347. Top K Frequent Elements/approach1.py -------------------------------------------------------------------------------- /solutions/347. Top K Frequent Elements/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/347. Top K Frequent Elements/approach2.py -------------------------------------------------------------------------------- /solutions/36. Valid Sudoku/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/36. Valid Sudoku/README.md -------------------------------------------------------------------------------- /solutions/36. Valid Sudoku/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/36. Valid Sudoku/approach1.py -------------------------------------------------------------------------------- /solutions/36. Valid Sudoku/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/36. Valid Sudoku/approach2.py -------------------------------------------------------------------------------- /solutions/36. Valid Sudoku/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/36. Valid Sudoku/example1.png -------------------------------------------------------------------------------- /solutions/371. Sum of Two Integers/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/371. Sum of Two Integers/README.md -------------------------------------------------------------------------------- /solutions/371. Sum of Two Integers/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/371. Sum of Two Integers/image.png -------------------------------------------------------------------------------- /solutions/371. Sum of Two Integers/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/371. Sum of Two Integers/solution.py -------------------------------------------------------------------------------- /solutions/39. Combination Sum/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/39. Combination Sum/README.md -------------------------------------------------------------------------------- /solutions/39. Combination Sum/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/39. Combination Sum/solution.py -------------------------------------------------------------------------------- /solutions/417. Pacific Atlantic Water Flow/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/417. Pacific Atlantic Water Flow/README.md -------------------------------------------------------------------------------- /solutions/417. Pacific Atlantic Water Flow/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/417. Pacific Atlantic Water Flow/example1.jpeg -------------------------------------------------------------------------------- /solutions/417. Pacific Atlantic Water Flow/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/417. Pacific Atlantic Water Flow/solution.py -------------------------------------------------------------------------------- /solutions/424. Longest Repeating Character Replacement/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/424. Longest Repeating Character Replacement/README.md -------------------------------------------------------------------------------- /solutions/424. Longest Repeating Character Replacement/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/424. Longest Repeating Character Replacement/approach1.py -------------------------------------------------------------------------------- /solutions/424. Longest Repeating Character Replacement/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/424. Longest Repeating Character Replacement/approach2.py -------------------------------------------------------------------------------- /solutions/435. Non-overlapping Intervals/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/435. Non-overlapping Intervals/README.md -------------------------------------------------------------------------------- /solutions/435. Non-overlapping Intervals/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/435. Non-overlapping Intervals/image1.png -------------------------------------------------------------------------------- /solutions/435. Non-overlapping Intervals/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/435. Non-overlapping Intervals/image2.png -------------------------------------------------------------------------------- /solutions/435. Non-overlapping Intervals/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/435. Non-overlapping Intervals/solution.py -------------------------------------------------------------------------------- /solutions/48. Rotate Image/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/48. Rotate Image/README.md -------------------------------------------------------------------------------- /solutions/48. Rotate Image/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/48. Rotate Image/example1.jpeg -------------------------------------------------------------------------------- /solutions/48. Rotate Image/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/48. Rotate Image/example2.jpeg -------------------------------------------------------------------------------- /solutions/48. Rotate Image/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/48. Rotate Image/solution.py -------------------------------------------------------------------------------- /solutions/49. Group Anagrams/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/49. Group Anagrams/README.md -------------------------------------------------------------------------------- /solutions/49. Group Anagrams/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/49. Group Anagrams/solution.py -------------------------------------------------------------------------------- /solutions/5. Longest Palindromic Substring/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/5. Longest Palindromic Substring/README.md -------------------------------------------------------------------------------- /solutions/5. Longest Palindromic Substring/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/5. Longest Palindromic Substring/approach1.py -------------------------------------------------------------------------------- /solutions/5. Longest Palindromic Substring/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/5. Longest Palindromic Substring/approach2.py -------------------------------------------------------------------------------- /solutions/5. Longest Palindromic Substring/dp_solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/5. Longest Palindromic Substring/dp_solution.py -------------------------------------------------------------------------------- /solutions/5. Longest Palindromic Substring/thought.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/5. Longest Palindromic Substring/thought.png -------------------------------------------------------------------------------- /solutions/53. Maximum Subarray/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/53. Maximum Subarray/README.md -------------------------------------------------------------------------------- /solutions/53. Maximum Subarray/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/53. Maximum Subarray/solution.py -------------------------------------------------------------------------------- /solutions/54. Spiral Matrix/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/54. Spiral Matrix/README.md -------------------------------------------------------------------------------- /solutions/54. Spiral Matrix/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/54. Spiral Matrix/example1.jpeg -------------------------------------------------------------------------------- /solutions/54. Spiral Matrix/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/54. Spiral Matrix/example2.jpeg -------------------------------------------------------------------------------- /solutions/54. Spiral Matrix/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/54. Spiral Matrix/solution.py -------------------------------------------------------------------------------- /solutions/55. Jump Game/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/55. Jump Game/README.md -------------------------------------------------------------------------------- /solutions/55. Jump Game/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/55. Jump Game/solution.py -------------------------------------------------------------------------------- /solutions/56. Merge Intervals/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/56. Merge Intervals/README.md -------------------------------------------------------------------------------- /solutions/56. Merge Intervals/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/56. Merge Intervals/image1.png -------------------------------------------------------------------------------- /solutions/56. Merge Intervals/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/56. Merge Intervals/solution.py -------------------------------------------------------------------------------- /solutions/57. Insert Interval/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/57. Insert Interval/README.md -------------------------------------------------------------------------------- /solutions/57. Insert Interval/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/57. Insert Interval/solution.py -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/README.md -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/approach1.py -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/example1.jpeg -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/example2.jpeg -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/solution2-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/solution2-1.png -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/solution2-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/solution2-2.png -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/solution2-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/solution2-3.png -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/solution2-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/solution2-4.png -------------------------------------------------------------------------------- /solutions/572. Subtree of Another Tree/solution2-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/572. Subtree of Another Tree/solution2-5.png -------------------------------------------------------------------------------- /solutions/62. Unique Paths/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/62. Unique Paths/README.md -------------------------------------------------------------------------------- /solutions/62. Unique Paths/example1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/62. Unique Paths/example1.png -------------------------------------------------------------------------------- /solutions/62. Unique Paths/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/62. Unique Paths/solution.py -------------------------------------------------------------------------------- /solutions/647. Palindromic Substrings/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/647. Palindromic Substrings/README.md -------------------------------------------------------------------------------- /solutions/647. Palindromic Substrings/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/647. Palindromic Substrings/solution.py -------------------------------------------------------------------------------- /solutions/70. Climbing Stairs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/70. Climbing Stairs/README.md -------------------------------------------------------------------------------- /solutions/70. Climbing Stairs/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/70. Climbing Stairs/solution.py -------------------------------------------------------------------------------- /solutions/73. Set Matrix Zeroes/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/73. Set Matrix Zeroes/README.md -------------------------------------------------------------------------------- /solutions/73. Set Matrix Zeroes/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/73. Set Matrix Zeroes/example1.jpeg -------------------------------------------------------------------------------- /solutions/73. Set Matrix Zeroes/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/73. Set Matrix Zeroes/example2.jpeg -------------------------------------------------------------------------------- /solutions/73. Set Matrix Zeroes/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/73. Set Matrix Zeroes/solution.py -------------------------------------------------------------------------------- /solutions/76. Minimum Window Substring/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/76. Minimum Window Substring/README.md -------------------------------------------------------------------------------- /solutions/76. Minimum Window Substring/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/76. Minimum Window Substring/approach1.py -------------------------------------------------------------------------------- /solutions/76. Minimum Window Substring/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/76. Minimum Window Substring/approach2.py -------------------------------------------------------------------------------- /solutions/79. Word Search/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/79. Word Search/README.md -------------------------------------------------------------------------------- /solutions/79. Word Search/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/79. Word Search/example1.jpeg -------------------------------------------------------------------------------- /solutions/79. Word Search/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/79. Word Search/example2.jpeg -------------------------------------------------------------------------------- /solutions/79. Word Search/example3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/79. Word Search/example3.jpeg -------------------------------------------------------------------------------- /solutions/79. Word Search/solution.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/79. Word Search/solution.py -------------------------------------------------------------------------------- /solutions/91. Decode Ways/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/91. Decode Ways/README.md -------------------------------------------------------------------------------- /solutions/91. Decode Ways/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/91. Decode Ways/approach1.py -------------------------------------------------------------------------------- /solutions/91. Decode Ways/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/91. Decode Ways/approach2.py -------------------------------------------------------------------------------- /solutions/98. Validate Binary Search Tree/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/98. Validate Binary Search Tree/README.md -------------------------------------------------------------------------------- /solutions/98. Validate Binary Search Tree/approach1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/98. Validate Binary Search Tree/approach1.py -------------------------------------------------------------------------------- /solutions/98. Validate Binary Search Tree/approach2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/98. Validate Binary Search Tree/approach2.py -------------------------------------------------------------------------------- /solutions/98. Validate Binary Search Tree/example1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/98. Validate Binary Search Tree/example1.jpeg -------------------------------------------------------------------------------- /solutions/98. Validate Binary Search Tree/example2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/98. Validate Binary Search Tree/example2.jpeg -------------------------------------------------------------------------------- /solutions/98. Validate Binary Search Tree/solution1-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/98. Validate Binary Search Tree/solution1-1.png -------------------------------------------------------------------------------- /solutions/98. Validate Binary Search Tree/solution1-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheExplainthis/LeetCodeJourney/HEAD/solutions/98. Validate Binary Search Tree/solution1-2.png --------------------------------------------------------------------------------