[LeetCode] 509. Fibonacci Number (Python)
python, algorithms, math, dp, recursion, memoization
[LeetCode] 509. Fibonacci Number (Python)
python, algorithms, math, dp, recursion, memoization
[LeetCode] 455. Assign Cookies (Python)
python, algorithms, array, two-pointer, greddy, sorting
[LeetCode] 406. Queue Reconstruction by Height (Python)
python, algorithms, array, greedy, sorting
[LeetCode] 134. Gas Station (Python)
python, algorithms, array, greedy
[LeetCode] 122. Best Time to Buy and Sell Stock II (Python)
python, algorithms, array, dp, greedy
[LeetCode] 76. Minimum Window Substring (Python)
python, algorithms, hash-table, string, sliding-window
[LeetCode] 424. Longest Repeating Character Replacement (Python)
python, algorithms, hash-table, string, sliding-window
[LeetCode] 239. Sliding Window Maximum (Python)
python, algorithms, array, queue, sliding-window, heap, priority-queue, monotonic-queue
[LeetCode] 461. Hamming Distance (Python)
python, algorithms, bit-manipulation
[LeetCode] 191. Number of 1 Bits (Python)
python, algorithms, divide-and-conquer, bit-manipulation
[LeetCode] 371. Sum of Two Integers (Python)
python, algorithms, math, bit-manipulation
[LeetCode] 136. Single Number (Python)
python, algorithms, array, bit-manipulation
[LeetCode] 704. Binary Search (Python)
python, algorithms, array, binary-search
[LeetCode] 349. Intersection of Two Arrays (Python)
python, algorithms, array, hash-table, two-pointers, binary-search, sorting
[LeetCode] 33. Search in Rotated Sorted Array (Python)
python, algorithms, array, binary-search
[LeetCode] 240. Search a 2D Matrix II (Python)
python, algorithms, array, binary-search, divide-and-conquer, matrix
[LeetCode] 167. Two Sum II - Input Array Is Sorted (Python)
python, algorithms, array, two-pointer, binary-search
[LeetCode] 973. K Closest Points to Origin (Python)
python, algorithms, array, math, divide-and-conquer, geometry, sorting, heap, priority-queue, quick-select
[LeetCode] 75. Sort Colors (Python)
python, algorithms, array, two-pointers, sorting, dnf
[LeetCode] 242. Valid Anagram (Python)
python, algorithms, hash-table, string, sorting
[LeetCode] 179. Largest Number (Python)
python, algorithms, array, string, greedy, sorting
[LeetCode] 56. Merge Intervals (Python)
python, algorithms, array, sorting
[LeetCode] 148. Sort List (Python)
python, algorithms, linked-list, two-pointers, divide-and-conquer, sorting, merge-sort
[LeetCode] 147. Insertion Sort List (Python)
python, algorithms, linked-list, sorting
[LeetCode] 215. Kth Largest Element in an Array (Python)
python, algorithms, array, divide-and-conquer, sorting, heap, quick-select
[LeetCode] 208. Implement Trie (Prefix Tree) (Python)
python, algorithms, hash-table, string, design, trie
[LeetCode] 105. Construct Binary Tree from Preorder and Inorder Traversal (Python)
python, algorithms, array, hash-table, divide-and-conquer, tree, binary-tree
[LeetCode] 938. Range Sum of BST (Python)
tree, dfs, binary-search-tree, binary-tree
[LeetCode] 783. Minimum Distance Between BST Nodes (Python)
tree, dfs, bfs, binary-search-tree, binary-tree
[LeetCode] 1038. Binary Search Tree to Greater Sum Tree (Python)
tree, dfs, binary-search-tree, binary-tree
[LeetCode] 310. Minimum Height Trees (Python)
bfs, dfs, graph
[LeetCode] 110. Balanced Binary Tree (Python)
tree, dfs, binary-tree
[LeetCode] 108. Convert Sorted Array to Binary Search Tree (Python)
tree, binary-search-tree, binary-tree
[LeetCode] 617. Merge Two Binary Trees (Python)
tree, dfs, bfs, binary-tree
[LeetCode] 226. Invert Binary Tree (Python)
graph, dfs, bfs, binary-tree
[LeetCode] 687. Longest Univalue Path (Python)
graph, dfs, binary-tree
[LeetCode] 543. Diameter of Binary Tree (Python)
graph, dfs, binary-tree
[LeetCode] 104. Maximum Depth of Binary Tree (Python)
graph, bfs, binary-tree
[LeetCode] 78. Subsets (Python)
array, back-tracking, dfs
[LeetCode] 207. Course Schedule (Python)
graph, bfs, dfs
[LeetCode] 77. Combinations (Python)
back-tracking, combination
[LeetCode] 46. Permutations (Python)
array, back-tracking, permutation
[LeetCode] 39. Combination Sum (Python)
array, back-tracking
[LeetCode] 200. Number of Islands (Python)
array, dfs, bfs, union-find
[LeetCode] 17. Letter Combinations of a Phone Number (Python)
hash-table, string, back-tracking
[LeetCode] 771. Jewels and Stones (Python)
hash-table, string
[LeetCode] 706. Design HashMap (Python)
array, hash-table, linked-list, design, hash-function
[LeetCode] 641. Design Circular Deque (Python)
array, linked-list, design, queue
[LeetCode] 347. Top K Frequent Elements (Python)
array, hash-table, sorting, counter
[LeetCode] 3. Longest Substring Without Repeating Characters (Python)
hash-table, string, sliding-window
[LeetCode] 23. Merge k Sorted Lists (Python)
linked-list, divide-and-conquer, priority-queue, merge-sort
[LeetCode] 225. Implement Stack using Queues (Python)
stack, design, queue
[LeetCode] 20. Valid Parentheses (Python)
string, stack
[LeetCode] 561. Array Partition (Python)
array, greedy, sorting, counting-sort
[LeetCode] 42. Trapping Rain Water (Python)
array, two-pointers, dp, stack
[LeetCode] 238. Product of Array Except Self (Python)
array, prefix-sum
[LeetCode] 15. 3Sum (Python)
array, two-pointers, sorting
[LeetCode] 937. Reorder Data in Log Files (Python)
array, string, sorting
[LeetCode] 819. Most Common Word (Python)
hash-table, string, counting
[LeetCode] 5. Longest Palindromic Substring (Python)
string, dp, two-pointer
[LeetCode] 49. Group Anagrams (Python)
array, hash-table, string, sorting
[LeetCode] 344. Reverse String (Python)
two-pointers, string
[LeetCode] 125. Valid Palindrome (Python)
two-pointers, string
[LeetCode] 1. Two Sum (Python)
python, array, hash-table
[LeetCode] 141. Linked List Cycle (Python)
python, hash-table, linked-list, two-pointers
[LeetCode] 234. Palindrome Linked List (Python)
python, linked-list, two-pointers, stack, recursion
[LeetCode] 70. Climbing Stairs (Python)
python, math, dp, memorization
[LeetCode] 160. Intersection of Two Linked Lists (Python)
python, hash-table, linked-list, two-pointers
[LeetCode] 101. Symmetric Tree (Python)
python, tree, dfs, bfs, binary-tree
[LeetCode] 543. Diameter of Binary Tree (Python)
python, tree, dfs, binary-tree
[LeetCode] 13. Roman to Integer (Python)
python, hash-table, math, string
[LeetCode] 283. Move Zeroes (Python)
python, array, two-pointers
[LeetCode] 1313. Decompress Run-Length Encoded List (Python)
python, algorithms, array
[LeetCode] 21. Merge Two Sorted Lists (Python)
python, algorithms, linked-list, recursion
[LeetCode] 169. Majority Element (Python)
python, algorithms, array, hash-table, divide-and-conquer, sorting, counting
[LeetCode] 118. Pascalβs Triangle (Python)
python, algorithms, array, dp
[LeetCode] 136. Single Number (Python)
python, algorithms, array, bit-manipulation
[LeetCode] 206. Reverse Linked List (Python)
python, algorithms, linked-list, recursion
[LeetCode] 1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree (Python)
python, algorithms, tree, dfs, bfs, binary-tree
[LeetCode] 2574. Left and Right Sum Differences (Python)
python, algorithms, array, prefix-sum
[LeetCode] 94. Binary Tree Inorder Traversal (Python)
python, algorithms, stack, tree ,dfs, binary-tree
[LeetCode] 104. Maximum Depth of Binary Tree (Python)
python, algorithms, tree, dfs, bfs, binary-tree
[LeetCode] 35. Search Insert Position (Java)
array, binary-search
[LeetCode] 226. Invert Binary Tree (Java)
tree, depth-first-search, breadth-first-search, binary-tree
[LeetCode] 763. Partition Labels (Java)
Partition Labels
[LeetCode] 2413. Smallest Even Multiple (Java)
Smallest Even Multiple
[LeetCode] 2535. Difference Between Element Sum and Digit Sum of an Array (Java)
Difference Between Element Sum and Digit Sum of an Array
[LeetCode] 2469. Convert the Temperature (Java)
Convert the Temperature
[LeetCode] 83. Remove Duplicates from Sorted List (Java)
Remove Duplicates from Sorted List
[LeetCode] 7. Reverse Integer (Java)
Reverse Integer
[LeetCode] 1. Two Sum (Java)
Two Sum
[LeetCode] 1773. Count Items Matching a Rule (Java)
Count Items Matching a Rule
[LeetCode] 1859. Sorting the Sentence (Java)
Sorting the Sentence
[LeetCode] 1221. Split a String in Balanced Strings (Java)
Split a String in Balanced Strings
[LeetCode] 1528. Shuffle String (Java)
Shuffle String
[LeetCode] 1342. Number of Steps to Reduce a Number to Zero (Java)
Number of Steps to Reduce a Number to Zero
[LeetCode] 1720. Decode XORed Array (Java)
Decode XORed Array
[LeetCode] 1678. Goal Parser Interpretation (Java)
Goal Parser Interpretation
[LeetCode] 1365. How Many Numbers Are Smaller Than the Current Number (Java)
How Many Numbers Are Smaller Than the Current Number
[LeetCode] 1281. Subtract the Product and Sum of Digits of an Integer (Java)
Subtract the Product and Sum of Digits of an Integer
[LeetCode] 1431. Kids With the Greatest Number of Candies (Java)
Kids With the Greatest Number of Candies
[LeetCode] 1603. Design Parking System (Java)
Design Parking System
[LeetCode] 771. Jewels and Stones (Java)
Jewels and Stones
[LeetCode] 1512. Number of Good Pairs (Java)
Number of Good Pairs
[LeetCode] 2160. Minimum Sum of Four Digit Number After Splitting Digits (Java)
Minimum Sum of Four Digit Number After Splitting Digits
[LeetCode] 2114. Maximum Number of Words Found in Sentences (Java)
Maximum Number of Words Found in Sentences
[LeetCode] 1470. Shuffle the Array (Java)
Shuffle the Array
[LeetCode] 1672. Richest Customer Wealth (Java)
Richest Customer Wealth
[LeetCode] 2011. Final Value of Variable After Performing Operations (Java)
Final Value of Variable After Performing Operations
[LeetCode] 1108. Defanging an IP Address (Java)
Defanging an IP Address
[LeetCode] 1480. Running Sum of 1d Array (Java)
Running Sum of 1d Array
[LeetCode] 1119. Remove Vowels from a String (Java)
Remove Vowels from a String
[LeetCode] 1920. Build Array from Permutation (Java)
Build Array from Permutation
[LeetCode] 1929. Concatenation of Array (Java)
Concatenation of Array