LeetCode solutions for CompCode
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
2239 | Find Closest Number to Zero | ✔️ ✔️ | ✔️ |
1768 | Merge Strings Alternately | ✔️ | ✔️ |
13 | Roman to Integer | ✔️ | ✔️ |
14 | Longest Common Prefix | ✔️ | ✔️ |
228 | Summary Ranges | ✔️ | ✔️ |
238 | Product of Array Except Self | ✔️ | ✔️ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
1 | Two Sum | ✔️ ✔️ | ✔️ |
136 | Single Number | ✔️ ✔️ ✔️ ✔️ | ✔️ |
347 | Top K Frequent Elements | ✔️ ✔️ ✔️ | ✔️ |
349 | Intersection of Two Arrays | ✔️ ✔️ ✔️ | ✔️ |
242 | Valid Anagram | ✔️ ✔️ ✔️ ✔️ | ✔️ |
205 | Isomorphic Strings | ✔️ | ✔️ |
36 | Valid Sudoku | ✔️ ✔️ ✔️ | ✔️ |
217 | Contains Duplicate | ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ | ✔️ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
167 | Two Sum II - Input Array Is Sorted | ✔️ | ✔️ |
125 | Valid Palindrome | ✔️ | ✔️ |
344 | Reverse String | ✔️ ✔️ | ✔️ |
121 | Best Time to Buy and Sell Stock | ✔️ | ✔️ |
11 | Container With Most Water | ✔️ ✔️ | ✔️ |
763 | Partition Labels | ✔️ | ✔️ |
88 | Merge Sorted Array | ✔️ ✔️ | ✔️ |
42 | Trapping Rain Water | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
682 | Baseball Game | ❌ | ❌ |
20 | Valid Parentheses | ✔️ | ✔️ |
155 | Min Stack | ❌ | ❌ |
739 | Daily Temperatures | ❌ | ❌ |
42 | Trapping Rain Water | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
206 | Reverse Linked List | ✔️ ✔️ | ✔️ |
141 | Linked List Cycle | ❌ | ❌ |
21 | Merge Two Sorted Lists | ❌ | ❌ |
19 | Remove Nth Node From End of List | ❌ | ❌ |
160 | Intersection of Two Linked Lists | ❌ | ❌ |
876 | Middle of the Linked List | ❌ | ❌ |
143 | Reorder List | ❌ | ❌ |
92 | Reverse Linked List II | ❌ | ❌ |
138 | Copy List with Random Pointer | ❌ | ❌ |
23 | Merge k Sorted Lists | ❌ | ❌ |
25 | Reverse Nodes in k-Group | ❌ | ❌ |
61 | Rotate List | ❌ | ❌ |
24 | Swap Nodes in Pairs | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
704 | Binary Search | ✔️ ✔️ | ✔️ |
278 | First Bad Version | ❌ | ❌ |
35 | Search Insert Position | ❌ | ❌ |
374 | Guess Number Higher or Lower | ❌ | ❌ |
33 | Search in Rotated Sorted Array | ❌ | ❌ |
34 | Find First and Last Position of Element in Sorted Array | ❌ | ❌ |
852 | Peak Index in a Mountain Array | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
209 | Minimum Size Subarray Sum | ✔️ ✔️ | ✔️ |
3 | Longest Substring Without Repeating Characters | ❌ | ❌ |
424 | Longest Repeating Character Replacement | ❌ | ❌ |
567 | Permutation in String | ❌ | ❌ |
76 | Minimum Window Substring | ❌ | ❌ |
1004 | Max Consecutive Ones III | ❌ | ❌ |
239 | Sliding Window Maximum | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
104 | Maximum Depth of Binary Tree | ✔️ ✔️ ✔️ | ✔️ |
226 | Invert Binary Tree | ✔️ ✔️ ✔️ ✔️ | ✔️ |
110 | Balanced Binary Tree | ❌ | ❌ |
101 | Symmetric Tree | ❌ | ❌ |
543 | Diameter of Binary Tree | ❌ | ❌ |
94 | Binary Tree Inorder Traversal | ✔️ ✔️ | ✔️ |
700 | Search in a Binary Search Tree | ❌ | ❌ |
701 | Insert into a Binary Search Tree | ❌ | ❌ |
98 | Validate Binary Search Tree | ❌ | ❌ |
450 | Delete Node in a BST | ❌ | ❌ |
235 | Lowest Common Ancestor of a Binary Search Tree | ❌ | ❌ |
530 | Minimum Absolute Difference in BST | ❌ | ❌ |
199 | Binary Tree Right Side View | ❌ | ❌ |
102 | Binary Tree Level Order Traversal | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
208 | Implement Trie (Prefix Tree) | ✔️ | ✔️ |
211 | Design Add and Search Words Data Structure | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
215 | Kth Largest Element in an Array | ❌ | ❌ |
973 | K Closest Points to Origin | ❌ | ❌ |
703 | Kth Largest Element in a Stream | ❌ | ❌ |
295 | Find Median from Data Stream | ❌ | ❌ |
1046 | Last Stone Weight | ✔️ ✔️ ✔️ | ✔️ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
56 | Merge Intervals | ✔️ | ✔️ |
57 | Insert Interval | ❌ | ❌ |
435 | Non-overlapping Intervals | ❌ | ❌ |
252 | Meeting Rooms | ❌ | ❌ |
253 | Meeting Rooms II | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
46 | Permutations | ❌ | ❌ |
78 | Subsets | ✔️ ✔️ | ✔️ |
90 | Subsets II | ❌ | ❌ |
77 | Combinations | ❌ | ❌ |
22 | Generate Parentheses | ❌ | ❌ |
39 | Combination Sum | ❌ | ❌ |
40 | Combination Sum II | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
200 | Number of Islands | ✔️ ✔️ | ✔️ |
547 | Number of Provinces | ❌ | ❌ |
695 | Max Area of Island | ❌ | ❌ |
1020 | Number of Enclaves | ❌ | ❌ |
133 | Clone Graph | ❌ | ❌ |
994 | Rotting Oranges | ❌ | ❌ |
797 | All Paths From Source to Target | ❌ | ❌ |
207 | Course Schedule | ❌ | ❌ |
323 | Number of Connected Components in an Undirected Graph | ❌ | ❌ |
684 | Redundant Connection | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
70 | Climbing Stairs | ✔️ ✔️ ✔️ ✔️ | ✔️ |
746 | Min Cost Climbing Stairs | ❌ | ❌ |
198 | House Robber | ❌ | ❌ |
213 | House Robber II | ❌ | ❌ |
62 | Unique Paths | ❌ | ❌ |
63 | Unique Paths II | ❌ | ❌ |
5 | Longest Palindromic Substring | ❌ | ❌ |
300 | Longest Increasing Subsequence | ❌ | ❌ |
1143 | Longest Common Subsequence | ❌ | ❌ |
152 | Maximum Product Subarray | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
136 | Single Number | ✔️ ✔️ ✔️ ✔️ | ✔️ |
191 | Number of 1 Bits | ✔️ ✔️ | ❌ |
231 | Power of Two | ❌ | ❌ |
338 | Counting Bits | ❌ | ❌ |
268 | Missing Number | ❌ | ❌ |
371 | Sum of Two Integers | ❌ | ❌ |
260 | Single Number III | ❌ | ❌ |
421 | Maximum XOR of Two Numbers in an Array | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
53 | Maximum Subarray | ✔️ ✔️ | ✔️ |
55 | Jump Game | ❌ | ❌ |
134 | Gas Station | ❌ | ❌ |
846 | Hand of Straights | ❌ | ❌ |
1899 | Merge Triplets to Form Target Triplet | ❌ | ❌ |
678 | Valid Parenthesis String | ❌ | ❌ |
LeetCode ID | Problem Name | Solutions | Video |
---|---|---|---|
202 | Happy Number | ❌ | ❌ |
66 | Plus One | ❌ | ❌ |
50 | Pow(x, n) | ❌ | ❌ |
48 | Rotate Image | ✔️ | ✔️ |
54 | Spiral Matrix | ❌ | ❌ |
73 | Set Matrix Zeroes | ❌ | ❌ |