Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
163 lines (136 loc) · 11.9 KB

File metadata and controls

163 lines (136 loc) · 11.9 KB

LeetCode Master List

This file consolidates all LeetCode-equivalent problems across various topics in this repository.


📊 Grand Total LeetCode Questions: 92


1. Arrays

# Problem Statement LeetCode Link
3 Calculate frequency of array 1636. Sort Array by Increasing Frequency
6 Move zero to end in array 283. Move Zeroes
7 Reverse the array 344. Reverse String (related)
8 Rotate array 189. Rotate Array
10 Find majority element in array 169. Majority Element
12 Remove Duplicate from an array 26. Remove Duplicates from Sorted Array
13 Find intersection of two array 349. Intersection of Two Arrays
15 Kaden’s algorithms 53. Maximum Subarray
16 Dutch national algorithms 75. Sort Colors
18 Find missing number 268. Missing Number
19 Maximum sum subarray 53. Maximum Subarray
20 Binary search iterative 704. Binary Search
21 Median of array 4. Median of Two Sorted Arrays
22 All repeating elements 442. Find All Duplicates in an Array
27 Find missing number 268. Missing Number
32 Subarray sum exists 560. Subarray Sum Equals K
34 Search in 2d matrix 74. Search a 2D Matrix
35 Print matrix in spiral manner 54. Spiral Matrix
36 Sort 0 1 and 2 75. Sort Colors
37 Intersection II 350. Intersection of Two Arrays II
43 Generate permutations 46. Permutations
44 Pair with target sum 1. Two Sum

Total Arrays: 22


2. Problems on Number

# Problem Statement LeetCode Link
1 Check Palindrome Number 9. Palindrome Number
3 Check Prime Number 204. Count Primes (related)
5 Armstrong Number 1134. Armstrong Number (Premium)
6 Perfect Number 507. Perfect Number
15 Reverse Digits 7. Reverse Integer
17 Power of Number 50. Pow(x, n)
21 GCD of two numbers 1979. Find Greatest Common Divisor of Array
24 Sum of Digits 258. Add Digits (related)

Total Problems on Number: 8


3. Strings

# Problem Statement LeetCode Link
1 Check string anagram or not 242. Valid Anagram
2 Check string is palindrome 125. Valid Palindrome
3 Reverse the string 344. Reverse String
4 Check string is permutation 567. Permutation in String
5 Reverse without STL 344. Reverse String
6 First occurrence of string 28. Find the Index of the First Occurrence in a String
17 Find non-repeating character 387. First Unique Character in a String
18 Anagram check 242. Valid Anagram
19 Wildcard matching 44. Wildcard Matching
21 Remove duplicates 1047. Remove All Adjacent Duplicates In String
27 Find substring position 28. Find the Index of the First Occurrence in a String
28 Reverse two pointer 344. Reverse String
29 String permutations 46. Permutations (related)
30 Check permutation 567. Permutation in String
31 Brute force string match 28. Find the Index of the First Occurrence in a String

Total Strings: 15


4. Linked List

# Problem Statement LeetCode Link
12 Find the midNode 876. Middle of the Linked List
40 Detect the loop 141. Linked List Cycle
42 Reverse the linked list 206. Reverse Linked List
43 Merge two sorted linked list 21. Merge Two Sorted Lists
44 Check linked list is palindrome 234. Palindrome Linked List
45 Delete the loop 142. Linked List Cycle II (related)
46 Remove duplicate in sorted list 83. Remove Duplicates from Sorted List
47 Intersection of two sorted list 160. Intersection of Two Linked Lists (related)

Total Linked List: 8


5. Recursion

# Problem Statement LeetCode Link
5 Fibonacci series 509. Fibonacci Number
7 Reverse string recursion 344. Reverse String
8 Palindrome string check 125. Valid Palindrome
13 Sum of digits 258. Add Digits (related)
14 Power of number 50. Pow(x, n)
18 Binary search recursion 704. Binary Search
22 String permutations 46. Permutations (related)
23 Merge sort recursion 912. Sort an Array (related)
25 Calculate GCD 1979. Find Greatest Common Divisor of Array (related)

Total Recursion: 9


6. Searching

# Problem Statement LeetCode Link
1 Binary Search 704. Binary Search
2 Search in Rotated Sorted Array 33. Search in Rotated Sorted Array
3 Search in a 2D Matrix 74. Search a 2D Matrix
4 Find First and Last Position 34. Find First and Last Position of Element in Sorted Array
5 Search Insert Position 35. Search Insert Position
6 Peak Index in a Mountain Array 852. Peak Index in a Mountain Array
7 Find Minimum in Rotated Sorted Array 153. Find Minimum in Rotated Sorted Array
8 First Bad Version 278. First Bad Version
9 Sqrt(x) 69. Sqrt(x)
10 Guess Number Higher or Lower 374. Guess Number Higher or Lower

Total Searching: 10


7. Sorting

# Problem Statement LeetCode Link
1 Sort an Array (General) 912. Sort an Array
2 Sort Colors (Dutch National Flag) 75. Sort Colors
3 Insertion Sort List 147. Insertion Sort List
4 Sort List (Merge Sort) 148. Sort List
5 Kth Largest Element 215. Kth Largest Element in an Array
6 Maximum Gap (Radix/Bucket) 164. Maximum Gap
7 Largest Number (Custom Sort) 179. Largest Number
8 Merge Intervals 56. Merge Intervals
9 H-Index 274. H-Index
10 Squares of a Sorted Array 977. Squares of a Sorted Array

Total Sorting: 10


8. Tree

# Problem Statement LeetCode Link
3 Binary Tree Traversal (In/Pre/Post) 94. Inorder, 144. Preorder, 145. Postorder
11 Insert into a Binary Search Tree 701. Insert into a Binary Search Tree
12 Search in a Binary Search Tree 700. Search in a Binary Search Tree
15 Validate Binary Search Tree 98. Validate Binary Search Tree
21 Implement Trie (Prefix Tree) 208. Implement Trie (Prefix Tree)
25 Maximum Depth of Binary Tree 104. Maximum Depth of Binary Tree
25 Minimum Depth of Binary Tree 111. Minimum Depth of Binary Tree
26 Binary Tree Level Order Traversal 102. Binary Tree Level Order Traversal
27 Binary Tree Level Order Traversal II 107. Binary Tree Level Order Traversal II
28 Diameter of Binary Tree 543. Diameter of Binary Tree

Total Tree: 10