[go: up one dir, main page]

Skip to content

This repository contains detailed solutions to Strivers A2Z DSA course, covering all the approaches.

Notifications You must be signed in to change notification settings

The-EleetCoder/A2Z-DSA-Solutions

Repository files navigation

A2Z-DSA-Solutions

Problems Solved

No. Title Problem Statement Solution
1. Count Digits https://www.geeksforgeeks.org/problems/count-digits5716/1 C++
2. Reverse Number https://leetcode.com/problems/reverse-integer/ C++
3. Palindrome Number https://leetcode.com/problems/palindrome-number/description/ C++
4. LCM & GCD https://www.geeksforgeeks.org/problems/lcm-and-gcd4516/1 C++
5. Armstrong Numbers https://www.naukri.com/code360/problems/check-armstrong_589 C++
6. Print all Divisors https://www.geeksforgeeks.org/problems/all-divisors-of-a-number/1 C++
7. Check Prime https://www.naukri.com/code360/problems/check-prime_624934 C++
8. Counting Frequencies Of Array Elements https://www.geeksforgeeks.org/problems/frequency-of-array-elements-1587115620/0 C++
9. Frequency Of The Most Frequent Element https://leetcode.com/problems/frequency-of-the-most-frequent-element/description/ C++
10. Selection Sort https://www.geeksforgeeks.org/problems/selection-sort/1 C++
11. Bubble Sort https://www.geeksforgeeks.org/problems/bubble-sort/1 C++
12. Insertion Sort https://www.geeksforgeeks.org/problems/insertion-sort/0 C++
13. Merge Sort https://www.geeksforgeeks.org/problems/merge-sort/1 C++
14. Largest Element In The Array https://www.naukri.com/code360/problems/largest-element-in-the-array-largest-element-in-the-array_5026279 C++
15. Second Largest Element In The Array https://www.geeksforgeeks.org/problems/second-largest3735/1 C++
16. Check If Array Is Sorted https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/ C++
17. Remove Duplicates From Sorted Array https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/ C++
18. Rotate Array https://leetcode.com/problems/rotate-array/ C++
19. Move Zeroes https://leetcode.com/problems/move-zeroes/description/ C++
20. Sorted Array Search https://www.geeksforgeeks.org/problems/who-will-win-1587115621/1 C++
21. Union Of Two Sorted Arrays https://www.geeksforgeeks.org/problems/union-of-two-sorted-arrays-1587115621/1 C++
22. Missing Number https://leetcode.com/problems/missing-number/ C++
23. Max Consecutive Ones https://leetcode.com/problems/max-consecutive-ones/ C++
24. Single Number https://leetcode.com/problems/single-number/ C++
25. Longest Subarray With Sum K (positive + negative) https://www.geeksforgeeks.org/problems/longest-sub-array-with-sum-k0809/1 C++
26. Longest Subarray With Sum K (positive) https://www.naukri.com/code360/problems/longest-subarray-with-sum-k_6682399 C++
27. Two Sum https://leetcode.com/problems/two-sum/ C++
28. Sort Colors https://leetcode.com/problems/sort-colors/ C++
29. Majority Element https://leetcode.com/problems/majority-element/ C++
30. Maximum Subarray https://leetcode.com/problems/maximum-subarray/ C++
31. Maximum Score From Subarray Minimums https://www.geeksforgeeks.org/problems/max-sum-in-sub-arrays0824/0 C++
32. Best Time To Buy And Sell Stock https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ C++
33. Rearrange Array Elements By Sign https://leetcode.com/problems/rearrange-array-elements-by-sign/ C++
34. Next Permutation https://leetcode.com/problems/next-permutation/ C++
35. Leaders In An Array https://www.geeksforgeeks.org/problems/leaders-in-an-array-1587115620/1 C++
36. Longest Consecutive Sequence https://leetcode.com/problems/longest-consecutive-sequence/ C++
37. Subarray Sum Equals K https://leetcode.com/problems/subarray-sum-equals-k/ C++
38. Set Matrix Zeros https://leetcode.com/problems/set-matrix-zeroes/ C++
39. Rotate Image https://leetcode.com/problems/rotate-image/ C++
40. Spiral Matrix https://leetcode.com/problems/spiral-matrix/ C++
41. Pascals Triangle https://leetcode.com/problems/pascals-triangle/ C++
42. Majority Element 2 https://leetcode.com/problems/majority-element-ii/ C++
43. 3 Sum https://leetcode.com/problems/3sum/ C++
44. 4 Sum https://leetcode.com/problems/4sum/ C++
45. Largest Subarray With 0 Sum https://www.geeksforgeeks.org/problems/largest-subarray-with-0-sum/1 C++
46. Count Number Of Subarrays With Given Xor K https://www.naukri.com/code360/problems/subarrays-with-xor-k_6826258 C++
47. Merge Intervals https://leetcode.com/problems/merge-intervals/ C++
48. Merge Sorted Array https://leetcode.com/problems/merge-sorted-array/ C++
49. Missing And Repeating https://www.geeksforgeeks.org/problems/find-missing-and-repeating2512/1 C++
50. Count Inversions https://www.geeksforgeeks.org/problems/inversion-of-array-1587115620/1 C++
51. Reverse Pairs https://leetcode.com/problems/reverse-pairs/ C++
52. Maximum Product Subarray https://leetcode.com/problems/maximum-product-subarray/ C++
53. Binary Search https://leetcode.com/problems/binary-search/ C++
54. Floor In A Sorted Array https://www.geeksforgeeks.org/problems/floor-in-a-sorted-array-1587115620/1 C++
55. Implement Upper Bound https://www.naukri.com/code360/problems/implement-upper-bound_8165383 C++
56. Search Insert Position https://leetcode.com/problems/search-insert-position/ C++
57. Ceil The Floor https://www.naukri.com/code360/problems/ceiling-in-a-sorted-array_1825401 C++
58. Find First And Last Position Of Element In Sorted Array https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ C++
59. Number Of Occurrence https://www.geeksforgeeks.org/problems/number-of-occurrence2259/1 C++
60. Search In Rotated Sorted Array https://leetcode.com/problems/search-in-rotated-sorted-array/ C++
61. Search In Rotated Sorted Array 2 https://leetcode.com/problems/search-in-rotated-sorted-array-ii/ C++
62. Find Minimum In Rotated Sorted Array https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/ C++
63. Find Kth Rotation https://www.geeksforgeeks.org/problems/rotation4723/1 C++
64. Single Element In A Sorted Array https://leetcode.com/problems/single-element-in-a-sorted-array/ C++
65. Find Peak Element https://leetcode.com/problems/find-peak-element/ C++
66. Square Root Of A Number https://www.geeksforgeeks.org/problems/square-root/0 C++
67. Find Nth Root Of M https://www.geeksforgeeks.org/problems/find-nth-root-of-m5843/1 C++
68. Koko Eating Bananas https://leetcode.com/problems/koko-eating-bananas/ C++

About

This repository contains detailed solutions to Strivers A2Z DSA course, covering all the approaches.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages