Medium Problems Hard Problems
Easy Problems ASADULLA AL MAMUN
[Link] Permutation 1. Trapping Rain Water
1. Second Largest Element
2. Third Largest Element
2. Majority Element 2. Maximum Circular Subarray Sum Array Problem
3. Majority Element II 3. Smallest Missing Positive Number
3. Reverse an Array
4. Minimize the Heights II 4. Jump Game 12 Days Needed
4. Reverse Array in Groups
5. Maximum Subarray Sum 5. Closest Subsequence Sum
5. Rotate Array
6. Maximum Product Subarray 6. Smallest Non-Representable Sum in Array
6. Three Great Candidates
7. Product of Array Except Self 7. Smallest Range Having Elements From K Lists
7. Max Consecutive Ones
8. Subarrays with Product Less Than K 8. Count Subarrays with K Distinct Elements
8. Move All Zeroes To End
9. Split Into Three Equal Sum Segments 9. Next Smallest Palindrome
9. Wave Array
10. Maximum Consecutive 1s After Flipping 10. Maximum Sum Among All Rotations
10. Plus One
0s
11. Stock Buy and Sell – One Transaction
11. Last Moment Before Ants Fall Out of Additional:
12. Stock Buy and Sell – Multiple Transactions
Plank 1. Largest Element in an Array
13. Remove Duplicates from Sorted Array
12. Find 0 with Farthest 1s in a Binary 2. Check if the array is sorted
14. Alternate Positive Negative
13. Intersection of Interval Lists 3. Linear Search
15. Array Leaders
14. Rearrange Array Elements by Sign 4. Find the Union
16. Missing and Repeating in Array
15. Meeting Scheduler for Two Persons 5. Find missing number in an array
17. Missing Ranges of Numbers
16. Longest Mountain Subarray 6. Find the number that appears once, and
18. Sum of all Subarrays
17. Transform and Sort Array other numbers twice
18. Minimum Swaps To Group All Ones 7. Longest subarray with given sum K
19. Minimum Moves To Equalize Array (positives)
20. Minimum Indices To Equal Even-Odd 8. Longest subarray with sum K (positives +
Sums negatives)
Recap:
9. 2Sum Problem
1. Pair
10. Sort an array of 0's, 1's and 2's
2. Vectors 11. Print subarray with maximum subarray
3. Stack sum
12. Longest Consecutive Sequence in an
[Link]
Array
5. Map **
13. Count subarrays with given sum
14. Set Matrix Zeros
15. Rotate Matrix by 90 degree
16. Flipping an Image
17. Toeplitz Matrix
18. Find the Duplicate Number
19. Rotate Image
20. Missing Ranges