Skip to content

Interstellarkai/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 Leetcode Challenge 🔥

Data Structure I

Day Difficulty Problem Attempt
1 Easy Array - 217. Contains Duplicate Python3
1 Easy Array - 53. Maximum Subarray Python3
2 Easy Array - 1. Two Sum Python3
2 Easy Array - 88. Merge Sorted Array Python3
3 Easy Array - 350. Intersection of Two Arrays II Python3
3 Easy Array - 121. Best Time to Buy and Sell Stock Python3
4 Easy Array - 566. Reshape the Matrix Python3
4 Easy Array - 118. Pascal's Triangle Python3
5 Medium Array - 36. Valid Sudoku Python3
5 Medium Array - 74. Search a 2D Matrix Python3
6 Easy String - 387. First Unique Character in a String Python3
6 Easy String - 383. Ransom Note Python3
6 Easy String - 242. Valid Anagram Python3
7 Easy Linked List - 141. Linked List Cycle Python3
7 Easy Linked List - 21. Merge Two Sorted Lists Python3
7 Easy Linked List - 203. Remove Linked List Elements Python3
8 Easy Linked List - 206. Reverse Linked List Python3
8 Easy Linked List - 83. Remove Duplicates from Sorted List Python3
9 Easy Stack / Queue - 20. Valid Parentheses Python3
9 Easy Stack / Queue - 232. Implement Queue using Stacks Python3
10 Easy Tree - 144. Binary Tree Preorder Traversal Python3
10 Easy Tree - 94. Binary Tree Inorder Traversal Python3
10 Easy Tree - 145. Binary Tree Postorder Traversal Python3
11 Medium Tree - 102. Binary Tree Level Order Traversal Python3
11 Easy Tree - 104. Maximum Depth of Binary Tree Python3
11 Easy Tree - 101. Symmetric Tree Python3
12 Easy Tree - 226. Invert Binary Tree Python3
12 Easy Tree - 112. Path Sum Python3
13 Easy Tree - 700. Search in a Binary Search Tree Python3
13 Medium Tree - 701. Insert into a Binary Search Tree Python3
14 Medium Tree - 98. Validate Binary Search Tree Python3
14 Easy Tree - 653. Two Sum IV - Input is a BST Python3
14 Easy Tree - 235. Lowest Common Ancestor of a Binary Search Tree Python3

Data Structure II

Day Difficulty Problem Attempt
1 Easy Array - 136. Single Number Python3
1 Easy Array - 169. Majority Element Python3
1 Medium Array - 15. 3Sum Python3
2 Medium Array - 75. Sort Colors Python3
2 Medium Array - 56. Merge Intervals Python3
2 Easy Array - 706. Design HashMap Python3
3 Easy Array - 119. Pascal's Triangle II Python3
3 Medium Array - 48. Rotate Image Python3
3 Medium Array - 59. Spiral Matrix II Python3
4 Medium Array - 240. Search a 2D Matrix II Python3
4 Medium Array - 435. Non-overlapping Intervals Python3
5 Medium Array - 334. Increasing Triplet Subsequence Python3
5 Medium Array - 238. Product of Array Except Self Python3
5 Medium Array - 560. Subarray Sum Equals K Python3
6 Easy String - 415. Add Strings Python3
6 Easy String - 409. Longest Palindrome Python3
7 Easy String - 290. Word Pattern Python3
7 Medium String - 763. Partition Labels Python3
8 Medium String - 49. Group Anagrams ✏️Python3
8 Medium String - 43. Multiply Strings ✏️Python3
9 Medium String - 187. Repeated DNA Sequences ✏️Python3
9 Medium String - 5. Longest Palindromic Substring ✏️Python3
10 Medium Linked List - 2. Add Two Numbers ✏️Python3
10 Medium Linked List - 142. Linked List Cycle II ✏️Python3
11 Easy Linked List - 160. Intersection of Two Linked Lists ✏️Python3
11 Medium Linked List - 82. Remove Duplicates from Sorted List II ✏️Python3
12 Medium Linked List - 24. Swap Nodes in Pairs ✏️Python3
12 Medium Linked List - 707. Design Linked List ✏️Python3
13 Hard Linked List - 25. Reverse Nodes in k-Group ✏️Python3
13 Medium Linked List - 143. Reorder List ✏️Python3
14 Easy Stack / Queue - 155. Min Stack ✏️Python3
14 Medium Stack / Queue - 1249. Minimum Remove to Make Valid Parentheses ✏️Python3
14 Medium Stack / Queue - 1823. Find the Winner of the Circular Game ✏️Python3
15 Easy Tree - 108. Convert Sorted Array to Binary Search Tree ✏️Python3
15 Medium Tree - 105. Construct Binary Tree from Preorder and Inorder Traversal ✏️Python3
15 Medium Tree - 103. Binary Tree Zigzag Level Order Traversal ✏️Python3
16 Medium Tree - 199. Binary Tree Right Side View ✏️Python3
16 Medium Tree - 113. Path Sum II ✏️Python3
16 Medium Tree - 450. Delete Node in a BST ✏️Python3
17 Medium Tree - 230. Kth Smallest Element in a BST ✏️Python3
17 Medium Tree - 173. Binary Search Tree Iterator ✏️Python3
18 Medium Tree - 236. Lowest Common Ancestor of a Binary Tree ✏️Python3
18 Hard Tree - 297. Serialize and Deserialize Binary Tree ✏️Python3
19 Easy Graph - 997. Find the Town Judge ✏️Python3
19 Medium Graph - 1557. Minimum Number of Vertices to Reach All Nodes ✏️Python3
19 Medium Graph - 841. Keys and Rooms ✏️Python3
20 Medium Heap (Priority Queue) - 215. Kth Largest Element in an Array ✏️Python3
20 Medium Heap (Priority Queue) - 347. Top K Frequent Elements ✏️Python3
21 Medium Heap (Priority Queue) - 451. Sort Characters By Frequency ✏️Python3
21 Medium Heap (Priority Queue) - 973. K Closest Points to Origin ✏️Python3

Algorithm I

Day Difficulty Problem Attempt
1 Easy Binary Search - 704. Binary Search Python3
1 Easy Binary Search - 278. First Bad Version Python3
1 Easy Binary Search - 35. Search Insert Position Python3
2 Easy Two Pointers - 977. Squares of a Sorted Array Python3
2 Medium Two Pointers - 189. Rotate Array Python3
3 Easy Two Pointers - 283. Move Zeroes Python3
3 Medium Two Pointers - 167. Two Sum II - Input Array Is Sorted Python3
4 Easy Two Pointers - 344. Reverse String Python3
4 Easy Two Pointers - 557. Reverse Words in a String III Python3
5 Easy Two Pointers - 876. Middle of the Linked List Python3
5 Medium Two Pointers - 19. Remove Nth Node From End of List Python3
6 Medium Sliding Window - 3. Longest Substring Without Repeating Characters Python3
6 Medium Sliding Window - 567. Permutation in String Python3
7 Easy Breadth-First Search / Depth-First Search - 733. Flood Fill Python3
7 Medium Breadth-First Search / Depth-First Search - 695. Max Area of Island Python3
8 Easy Breadth-First Search / Depth-First Search - 617. Merge Two Binary Trees Python3
8 Medium Breadth-First Search / Depth-First Search - 116. Populating Next Right Pointers in Each Node Python3
9 Medium Breadth-First Search / Depth-First Search - 542. 01 Matrix Python3
9 Medium Breadth-First Search / Depth-First Search - 994. Rotting Oranges Python3
10 Easy Recursion / Backtracking - 21. Merge Two Sorted Lists Python3
10 Easy Recursion / Backtracking - 206. Reverse Linked List Python3
11 Medium Recursion / Backtracking - 77. Combinations Python3
11 Medium Recursion / Backtracking - 46. Permutations Python3
11 Medium Recursion / Backtracking - 784. Letter Case Permutation Python3
12 Easy Dynamic Programming - 70. Climbing Stairs Python3
12 Medium Dynamic Programming - 198. House Robber Python3
12 Medium Dynamic Programming - 120. Triangle Python3
13 Easy Bit Manipulation - 231. Power of Two Python3
13 Easy Bit Manipulation - 191. Number of 1 Bits Python3
14 Easy Bit Manipulation - 190. Reverse Bits Python3
14 Easy Bit Manipulation - 136. Single Number Python3

Algorithm II

Day Difficulty Problem Attempt
1 Medium Binary Search - 34. Find First and Last Position of Element in Sorted Array ✏️Python3
1 Medium Binary Search - 33. Search in Rotated Sorted Array ✏️Python3
1 Medium Binary Search - 74. Search a 2D Matrix ✏️Python3
2 Medium Two Pointers - 153. Find Minimum in Rotated Sorted Array ✏️Python3
2 Medium Two Pointers - 162. Find Peak Element ✏️Python3
3 Medium Two Pointers - 82. Remove Duplicates from Sorted List II ✏️Python3
3 Medium Two Pointers - 15. 3Sum ✏️Python3
4 Easy Two Pointers - 844. Backspace String Compare ✏️Python3
4 Medium Two Pointers - 986. Interval List Intersections ✏️Python3
4 Medium Two Pointers - 11. Container With Most Water ✏️Python3
5 Medium Sliding Window - 438. Find All Anagrams in a String ✏️Python3
5 Medium Sliding Window - 713. Subarray Product Less Than K ✏️Python3
5 Medium Sliding Window - 209. Minimum Size Subarray Sum ✏️Python3
6 Medium Breadth-First Search / Depth-First Search - 200. Number of Islands ✏️Python3
6 Medium Breadth-First Search / Depth-First Search - 547. Number of Provinces ✏️Python3
7 Medium Breadth-First Search / Depth-First Search - 117. Populating Next Right Pointers in Each Node II ✏️Python3
7 Easy Breadth-First Search / Depth-First Search - 572. Subtree of Another Tree ✏️Python3
8 Medium Breadth-First Search / Depth-First Search - 1091. Shortest Path in Binary Matrix ✏️Python3
8 Medium Breadth-First Search / Depth-First Search - 130. Surrounded Regions ✏️Python3
8 Medium Breadth-First Search / Depth-First Search - 797. All Paths From Source to Target ✏️Python3
9 Medium Recursion / Backtracking - 78. Subsets ✏️Python3
9 Medium Recursion / Backtracking - 90. Subsets II ✏️Python3
10 Medium Recursion / Backtracking - 47. Permutations II ✏️Python3
10 Medium Recursion / Backtracking - 39. Combination Sum ✏️Python3
10 Medium Recursion / Backtracking - 40. Combination Sum II ✏️Python3
11 Medium Recursion / Backtracking - 17. Letter Combinations of a Phone Number ✏️Python3
11 Medium Recursion / Backtracking - 22. Generate Parentheses ✏️Python3
11 Medium Recursion / Backtracking - 79. Word Search ✏️Python3
12 Medium Dynamic Programming - 213. House Robber II ✏️Python3
12 Medium Dynamic Programming - 55. Jump Game ✏️Python3
13 Medium Dynamic Programming - 45. Jump Game II ✏️Python3
13 Medium Dynamic Programming - 62. Unique Paths ✏️Python3
14 Medium Dynamic Programming - 5. Longest Palindromic Substring ✏️Python3
14 Medium Dynamic Programming - 413. Arithmetic Slices ✏️Python3
15 Medium Dynamic Programming - 91. Decode Ways ✏️Python3
15 Medium Dynamic Programming - 139. Word Break ✏️Python3
16 Medium Dynamic Programming - 300. Longest Increasing Subsequence ✏️Python3
16 Medium Dynamic Programming - 673. Number of Longest Increasing Subsequence ✏️Python3
17 Medium Dynamic Programming - 1143. Longest Common Subsequence ✏️Python3
17 Medium Dynamic Programming - 583. Delete Operation for Two Strings ✏️Python3
18 Hard Dynamic Programming - 72. Edit Distance ✏️Python3
18 Medium Dynamic Programming - 322. Coin Change ✏️Python3
18 Medium Dynamic Programming - 343. Integer Break ✏️Python3
19 Medium Bit Manipulation - 201. Bitwise AND of Numbers Range ✏️Python3
20 Medium Others - 384. Shuffle an Array ✏️Python3
21 Easy Others - 202. Happy Number ✏️Python3
21 Hard Others - 149. Max Points on a Line ✏️Python3

Binary Search I

Day Difficulty Problem Attempt
1 Easy 704. Binary Search Python3
1 Easy 374. Guess Number Higher or Lower Python3
2 Easy 35. Search Insert Position Python3
2 Easy 852. Peak Index in a Mountain Array Python3
3 Easy 367. Valid Perfect Square Python3
3 Easy 1385. Find the Distance Value Between Two Arrays Python3
4 Easy 69. Sqrt(x) Python3
4 Easy 744. Find Smallest Letter Greater Than Target Python3
5 Easy 278. First Bad Version Python3
5 Medium 34. Find First and Last Position of Element in Sorted Array Python3
6 Easy 441. Arranging Coins Python3
6 Easy 1539. Kth Missing Positive Number Python3
7 Medium 167. Two Sum II - Input Array Is Sorted Python3
7 Easy 1608. Special Array With X Elements Greater Than or Equal X Python3
8 Easy 1351. Count Negative Numbers in a Sorted Matrix ✏️Python3
8 Medium 74. Search a 2D Matrix ✏️Python3
9 Easy 1337. The K Weakest Rows in a Matrix ✏️Python3
9 Easy 1346. Check If N and Its Double Exist ✏️Python3
10 Easy 350. Intersection of Two Arrays II ✏️Python3
10 Medium 633. Sum of Square Numbers ✏️Python3
11 Medium ✏️Python3
11 Medium ✏️Python3
12 Medium ✏️Python3

Programming Skills I

Day Difficulty Problem Attempt
1 Easy Basic Data Type - 1523. Count Odd Numbers in an Interval Range Python3
1 Easy Basic Data Type - 1491. Average Salary Excluding the Minimum and Maximum Salary Python3
2 Easy Operator - 191. Number of 1 Bits Python3
2 Easy Operator - 1281. Subtract the Product and Sum of Digits of an Integer Python3
3 Easy Conditional Statements - 976. Largest Perimeter Triangle Python3
3 Easy Conditional Statements - 1779. Find Nearest Point That Has the Same X or Y Coordinate Python3
4 Easy Loop - 1822. Sign of the Product of an Array Python3
4 Easy Loop - 1502. Can Make Arithmetic Progression From Sequence Python3
4 Easy Loop - 202. Happy Number Python3
4 Easy Loop - 1790. Check if One String Swap Can Make Strings Equal Python3
5 Easy Function - 589. N-ary Tree Preorder Traversal Python3
5 Easy Function - 496. Next Greater Element I Python3
5 Easy Function - 1232. Check If It Is a Straight Line Python3
6 Easy Array - 1588. Sum of All Odd Length Subarrays ✏️Python3
6 Easy Array - 283. Move Zeroes ✏️Python3
6 Easy Array - 1672. Richest Customer Wealth ✏️Python3
7 Easy Array - 1572. Matrix Diagonal Sum ✏️Python3
7 Easy Array - 566. Reshape the Matrix ✏️Python3
8 Easy String - 1768. Merge Strings Alternately ✏️Python3
8 Easy String - 1678. Goal Parser Interpretation ✏️Python3
8 Easy String - 389. Find the Difference ✏️Python3
9 Easy String - 709. To Lower Case ✏️Python3
9 Easy String - 1309. Decrypt String from Alphabet to Integer Mapping ✏️Python3
9 Easy String - 953. Verifying an Alien Dictionary ✏️Python3
10 Easy Linked List & Tree - 1290. Convert Binary Number in a Linked List to Integer ✏️Python3
10 Easy Linked List & Tree - 876. Middle of the Linked List ✏️Python3
10 Easy Linked List & Tree - 104. Maximum Depth of Binary Tree ✏️Python3
10 Easy Linked List & Tree - 404. Sum of Left Leaves ✏️Python3
11 Easy Containers & Libraries - ✏️Python3
11 Easy Containers & Libraries - ✏️Python3
11 Easy Containers & Libraries - ✏️Python3
11 Easy Containers & Libraries - ✏️Python3
12 Easy Class & Object - ✏️Python3
12 Easy Class & Object - ✏️Python3

📌 Future

About

Data Structure and Algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages