https://github.com/askitendo/dsa-excercise
Documentation for DSA practice programs with the question and online progress tracker such as GeeksForGeeks, Codeninjas, Leetcode etc.
https://github.com/askitendo/dsa-excercise
a2z-dsa-sheet-solutions codingninjas cpp cppstl daily-coding-problem dsa dsa-practice geeksforgeeks leetcode stl striver-a2z-sheet
Last synced: 6 months ago
JSON representation
Documentation for DSA practice programs with the question and online progress tracker such as GeeksForGeeks, Codeninjas, Leetcode etc.
- Host: GitHub
- URL: https://github.com/askitendo/dsa-excercise
- Owner: AskitEndo
- Created: 2024-04-26T17:22:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-21T16:25:05.000Z (over 1 year ago)
- Last Synced: 2024-05-22T13:17:12.359Z (over 1 year ago)
- Topics: a2z-dsa-sheet-solutions, codingninjas, cpp, cppstl, daily-coding-problem, dsa, dsa-practice, geeksforgeeks, leetcode, stl, striver-a2z-sheet
- Language: C++
- Homepage:
- Size: 103 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **DSA Concept Practice đšđ»âđ»đïžđ**
Welcome to my DSA Concept Practice repository! Here you'll find my solutions to various Data Structures and Algorithms problems, coded in C++.
## **About**
I'm committed to improving my DSA skills, and what better way to do it than by practicing regularly? Each day, I'll be adding a new problem along with its solution in this repository. So, feel free to explore, learn, and contribute!
## **Daily Updates**
I'll be updating this section daily to keep you informed about the latest additions to the repository.
---
### **Day 42: Mar 16, 2025**
- Added [searchRange.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2042/searchRange.cpp):Return appropriate range of the number[Link to Questionâ](https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/)
- Added [countFreq.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2042/countFreq.cpp):Return appropriate count of the number[Link to Questionâ](https://www.geeksforgeeks.org/problems/number-of-occurrence2259/1)
---
### **Day 41: Mar 15, 2025**
- Added [searchInsertPosition.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2041/searchInsertPosition.cpp):Return appropriate index to insert the number[Link to Questionâ](https://leetcode.com/problems/search-insert-position/)
---
### **Day 40: Mar 10, 2025**
- Added [getFloorAndCeil.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2040/getFloorAndCeil.cpp):find floor and ceil of number in the array[Link to Questionâ](https://www.geeksforgeeks.org/problems/ceil-the-floor2802/1)
- Added [upperBound.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2040/upperBound.cpp):find upper bound of number in the array[Link to Questionâ](https://www.geeksforgeeks.org/problems/implement-upper-bound/1)
---
### **Day 39: Mar 09, 2025**
- Added [lowerBound.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2039/lowerBound.cpp):find lowerBound of the number[Link to Questionâ](https://www.geeksforgeeks.org/problems/floor-in-a-sorted-array-1587115620/1)
---
### **Day 38: Mar 08, 2025**
- Added [binarySearch.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2038/binarySearch.cpp):Implement binary search o(log(n)) to find element[Link to Questionâ](https://leetcode.com/problems/binary-search/)
---
### **Day 37: Mar 07, 2025**
- Added [maxProdSubArray_Optimal.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2037/maxProdSubArray_Optimal.cpp):Given an integer array nums, find a subarray that has the largest product, and return the product.[Link to Questionâ](https://leetcode.com/problems/maximum-product-subarray/)
- Added [maxProdSubArray_Better.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2037/maxProdSubArray_Better.cpp):Given an integer array nums, find a subarray that has the largest product, and return the product.[Link to Questionâ](https://leetcode.com/problems/maximum-product-subarray/)
- Added [maxProdSubArray_Brute.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2037/maxProdSubArray_Brute.cpp):Given an integer array nums, find a subarray that has the largest product, and return the product.[Link to Questionâ](https://leetcode.com/problems/maximum-product-subarray/)
---
### **Day 36: Mar 06, 2025**
- Added [reversePair_Brute.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2036/reversePair_Brute.cpp):Given an integer array nums, return the number of reverse pairs in the array.[Link to Questionâ](https://leetcode.com/problems/reverse-pairs/)
- Added [reversePair.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2036/reversePair.cpp):Given an integer array nums, return the number of reverse pairs in the array.[Link to Questionâ](https://leetcode.com/problems/reverse-pairs/)
---
### **Day 35: Mar 05, 2025**
- Added [mergeIntervals.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2035/mergeIntervals.cpp):Merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.[Link to Questionâ](https://leetcode.com/problems/merge-intervals/)
- Added [mergeAndRepeating.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2035/mergeAndRepeating.cpp):Given an unsorted array arr of positive integers. One number a from the set [1, 2,....,n] is missing and one number b occurs twice in the array. Find numbers a and b.[Link to Questionâ](https://www.geeksforgeeks.org/problems/find-missing-and-repeating2512/1)
- Added [countInversion_Brute.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2035/countInversion_Brute.cpp):Given an array of integers arr[]. Find the Inversion Count in the array.[Link to Questionâ](https://www.geeksforgeeks.org/problems/inversion-of-array-1587115620/1)
- Added [countInversion.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2035/countInversion.cpp):Given an array of integers arr[]. Find the Inversion Count in the array.[Link to Questionâ](https://www.geeksforgeeks.org/problems/inversion-of-array-1587115620/1)
---
### **Day 34: Mar 04, 2025**
- Added [mergeSortedArray.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2034/mergeSortedArray.cpp):Merging two arrays into one[Link to Questionâ](https://leetcode.com/problems/merge-sorted-array)
---
### **Day 33: Jan 05, 2025**
- Added [subArraywithXOR_Better.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2033/subArraywithXOR_Better.cpp):Return the largest sub array with 0 sum[Link to Questionâ](https://www.geeksforgeeks.org/problems/count-subarray-with-given-xor/1)
- Added [subArraywithXOR_Optimal.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2033/subArraywithXOR_Optimal.cpp):Return the largest sub array with 0 sum[Link to Questionâ](https://www.geeksforgeeks.org/problems/count-subarray-with-given-xor/1)
- Added [pairSumLess.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2033/pairSumLess.cpp):Find number of pairs whose sum is less than the target[Link to Questionâ](https://www.geeksforgeeks.org/problems/count-pairs-whose-sum-is-less-than-target/1)
---
### **Day 32: Jan 04, 2025**
- Added [subArraywithXOR_Brute.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2032/subArraywithXOR_Brute.cpp):Return the largest sub array with 0 sum[Link to Questionâ](https://www.geeksforgeeks.org/problems/count-subarray-with-given-xor/1)
---
### **Day 31: Jan 03, 2025**
- Added [fourSum_optimal.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2031/fourSum_optimal.cpp):Four Sum problem optimal method with no extra space[Link to Questionâ](https://leetcode.com/problems/4sum/)
- Added [largestSubArrayWith0Sum.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2031/largestSubArrayWith0Sum.cpp):Givnig the largest subarray wth sum 0, similar to kadane algorithm[Link to Questionâ](https://www.geeksforgeeks.org/problems/largest-subarray-with-0-sum/1)
---
### **Day 30: Jan 02, 2025**
- Added [fourSum_Brute.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2030/fourSum_Brute.cpp):four sum problem the brit e force[Link to Questionâ](https://leetcode.com/problems/4sum/)
- Added [fourSum_Better.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2030/fourSum_Better.cpp):four sum porblem a better approach[Link to Questionâ](https://leetcode.com/problems/4sum/)
---
### **Day 29: May 24, 2024**
- Added [threeSum.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2029/threeSum.cpp):three Sum problem [Link to Questionâ](https://leetcode.com/problems/3sum/description)
- Added [threeSum_Better.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2029/threeSum_Better.cpp):three Sum problem [Link to Questionâ](https://leetcode.com/problems/3sum/description)
---
### **Day 28: May 23, 2024**
- Added [majorityN3.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2028/majorityN3.cpp): Returns array of majority n/3 elemtns [Link to Questionâ](https://leetcode.com/problems/majority-element-ii/)
---
### **Day 27: May 22, 2024**
- Added [pascalTriangle.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2027/pascalTriangle.cpp): Returns upto the nth row of the pascal triangle [Link to Questionâ](https://leetcode.com/problems/pascals-triangle/description/)
---
### **Day 26: May 21, 2024**
- Added [subArraySumK.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2026/subArraySumK.cpp): Returns number of subarray that can sum up to K[Link to Questionâ](https://leetcode.com/problems/subarray-sum-equals-k/)
---
### **Day 21: May 16, 2024** _To_ **Day 25: May 20, 2024**
- Added [markZeroes_Brute.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2021/markZeroes_Brute.cpp):if matrix conatins zero mark the entire row and column as zero. [Link to Questionâ](https://leetcode.com/problems/set-matrix-zeroes/)
- Added [markZeroes_Bool.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2022/markZeroes_Bool.cpp):if matrix conatins zero mark the entire row and column as zero. [Link to Questionâ](https://leetcode.com/problems/set-matrix-zeroes/)
- Added [markZeroes_Better.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2023/markZeroes_Better.cpp):if matrix conatins zero mark the entire row and column as zero. [Link to Questionâ](https://leetcode.com/problems/set-matrix-zeroes/)
- Added [rotate3x3Matrix90.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2024/rotate3x3Matrix90.cpp):Rotate 3x3 matrix by 90 Degrees. [Link to Questionâ](https://leetcode.com/problems/rotate-image/description/)
- Added [rotateMatrix90_Brute.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2025/rotateMatrix90_Brute.cpp):Rotate any sqaure Matrix by 90 Degrees [Link to Questionâ](https://leetcode.com/problems/rotate-image/description/)
- Added [rotateMatrix90_Optimal.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2025/rotateMatrix90_Optimal.cpp):Rotate any sqaure Matrix by 90 Degrees [Link to Questionâ](https://leetcode.com/problems/rotate-image/description/)
- Added [spiralMatrix.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2025/spiralMatrix.cpp):Prints all elemetns of the matrix the spiral order [Link to Questionâ](https://leetcode.com/problems/spiral-matrix/description/)
---
### **Day 18: May 13, 2024** _To_ **Day 20: May 15, 2024**
- Added [nextPermutation.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2018/nextPermutation.cpp): Updates the array to next permutation.[Link to Questionâ](https://leetcode.com/problems/next-permutation)
- Added [leaderInArray.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2019/leaderInArray.cpp):Returns the element which are greatest to the element to thier right.[Link to Questionâ](https://www.geeksforgeeks.org/problems/leaders-in-an-array-1587115620/1)
- Added [longestConsecutive.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2020/longestConsecutive.cpp):Returns the longest consecutive array of elements number.[Link to Questionâ](https://leetcode.com/problems/longest-consecutive-sequence/)
---
### **Day 17: May 12, 2024**
- Added [maxSumSubArray_Array.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2017/maxSumSubArray_Array.cpp): Printing the sub array whiv has the maximum sum.[Link to Questionâ](https://www.geeksforgeeks.org/problems/max-sum-in-sub-arrays0824/0)
- Added [stockBuyandSell.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2017/stockBuyandSell.cpp): buy stock and lowest and sell at highest.[Link to Questionâ](https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/)
- Added [rearrangeBySign.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2017/rearrangeBySign.cpp): Returns the majority element which occurs more then n/2 times.[Link to Questionâ](https://leetcode.com/problems/rearrange-array-elements-by-sign/description/)
---
### **Day 16: May 11, 2024**
- Added [majorityElementN2.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2016/majorityElementN2.cpp): Returns the majority element which occurs more then n/2 times.[Link to Questionâ](https://leetcode.com/problems/majority-element/)
- Added [maximumSubArraySum_Kadane.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2016/maximumSubArraySum_Kadane.cpp): Rearrange vector according to the order of alternative signs.[Link to Questionâ](https://leetcode.com/problems/maximum-subarray/)
---
### **Day 15: May 10, 2024**
- Added [twoSum_Hash.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2015/twoSum_Hash.cpp): Returns the array of two numbers of elements to sum up to target.[Link to Questionâ](https://leetcode.com/problems/two-sum/)
- Added [zeroOnesTwoes.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2015/zeroOnesTwoes.cpp): Sort colors on 0,1,2. [Link to Questionâ](https://leetcode.com/problems/sort-colors/)
- Added [zeroOnesTwoes_Optimal.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2015/zeroOnesTwoes_Optimal.cpp): Sort colors on 0,1,2. [Link to Questionâ](https://leetcode.com/problems/sort-colors/)
---
### **Day 14: May 9, 2024**
- Added [sumArrayOfSumK_HashMap.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2014/sumArrayOfSumK_HashMap.cpp): Returns the len of the longest number of elements to sum up to k.[Link to Questionâ](https://www.geeksforgeeks.org/problems/longest-sub-array-with-sum-k0809/1)
- Added [sumArrayOfSumK_Optimal.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2014/sumArrayOfSumK_Optimal.cpp): Returns the len of the longest number of elements to sum up to k.[Link to Questionâ](https://www.geeksforgeeks.org/problems/longest-sub-array-with-sum-k0809/1)
- Added [sumOfDivisors_Optimal.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2014/sumOfDivisors_Optimal.cpp): Returns the len of the longest number of elements to sum up to k.[Link to Questionâ](https://www.geeksforgeeks.org/problems/sum-of-all-divisors-from-1-to-n4738/1)
- Added [twoSum_Brute.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2014/twoSum_Brute.cpp): Returns the array of two numbers of elements to sum up to target.[Link to Questionâ](https://leetcode.com/problems/two-sum/)
---
### **Day 13: May 8, 2024**
- Added [sumArrayOfSumK.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2013/sumArrayOfSumK.cpp): Returns the len of the longest number of elements to sum up to k [Link to Questionâ](https://www.geeksforgeeks.org/problems/longest-sub-array-with-sum-k0809/1)
---
### **Day 12: May 7, 2024**
- Added [consecutiveNums.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2012/consecutiveNums.cpp): Returns The number which appears only single time â[L.T.Q.1â](https://www.naukri.com/code360/problems/find-the-single-element_6680465) â[L.T.Q.2â](https://leetcode.com/problems/single-number/)
---
### **Day 11: May 6, 2024**
- Added [findOnesSeries.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2011/findOnesSeries.cpp): Returns the number of consecutive ones in the array. â[L.T.Q.1â](https://www.naukri.com/code360/problems/maximum-consecutive-ones_3843993) â[L.T.Q.2â](https://leetcode.com/problems/max-consecutive-ones/description)
- Added [missingNumber.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2011/missingNumber.cpp): Returns missing number. [Link to Questionâ](https://leetcode.com/problems/missing-number/)
---
### **Day 10: May 5, 2024**
- Added [removeDuplicates1.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2010/removeDuplicates1.cpp): Removes the Duplicates from the array and return the length of unique elements. [Link to Questionâ](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)
- Added [removeDuplicates2.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2010/removeDuplicates2.cpp): Removes the Duplicates from the array and return the length of unique elements. [Link to Questionâ](https://www.naukri.com/code360/problems/remove-duplicates-from-sorted-array_1102307)
- Added [rotateByOne.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2010/rotateByOne.cpp): Rotates the array by one place [Link to Questionâ](https://www.naukri.com/code360/problems/left-rotate-an-array-by-one_5026278)
- Added [linearSearch.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2010/linearSearch.cpp): Performs linear search. [Link to Questionâ](https://www.naukri.com/code360/problems/linear-search_6922070)
- Added [moveZeroesToEnd.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%2010/moveZeroesToEnd.cpp): Moves all the zeroes of array in the end of array. â[L.T.Q.1â](https://www.naukri.com/code360/problems/ninja-and-the-zero-s_6581958) â[L.T.Q.2â](https://leetcode.com/problems/move-zeroes/description)
---
### **Day 9: May 04, 2024**
- Added [rotateByK.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%209/rotateByK.cpp):Rotate Array by K places. â[L.T.Q.1â](https://www.naukri.com/code360/problems/rotate-array_1230543) â[L.T.Q.2â](https://leetcode.com/problems/rotate-array/)
---
### **Day 8: May 03, 2024**
- Added [largestElement.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%208/largestElement.cpp):Returns Largest element of the array [Link to Questionâ](https://www.naukri.com/code360/problems/largest-element-in-the-array-largest-element-in-the-array_5026279)
- Added [secondLargestElement.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%208/secondLargestElement.cpp):Returns the second largest and the second smallest element [Link to Questionâ](https://www.naukri.com/code360/problems/ninja-and-the-second-order-elements_6581960)
- Added [isSorted.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%208/isSorted.cpp):Returns if the array is sorted [Link to Questionâ](https://www.naukri.com/code360/problems/ninja-and-the-sorted-check_6581957)
- Added [isRotatedIfSorted.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%208/isRotatedIfSorted.cpp):Returns if the array is roated if given sorted [Link to Questionâ](https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/)
- Added [isRotatedIfSorted2.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%208/isRotatedIfSorted2.cpp): [EASIER] Returns if the array is roated if given sorted [Link to Questionâ](https://leetcode.com/problems/check-if-array-is-sorted-and-rotated/)
---
### **Day 7: May 02, 2024**
- Added [countElementHash.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%207/countElementHash.cpp): Counting elements of a array using hashing [Link to Questionâ](https://www.naukri.com/code360/problems/count-frequency-in-a-range_8365446)
- Added [highestLowestFreq.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%207/highestLowestFreq.cpp): Returns Highest and Lowest Frequency elemets. [Link to Questionâ](https://www.naukri.com/code360/problems/k-most-occurrent-numbers_625382)
---
### **Day 6: May 01, 2024**
- Added [checkFactorial.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%206/checkFactorial.cpp): returns array containing all factorial numbers which are less than/equal to ânâ. [Link to Questionâ](https://www.naukri.com/code360/problems/factorial-numbers-not-greater-than-n_8365435)
- Added [reverseArray.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%206/reverseArray.cpp):reverses array usng recursion as base. [Link to Questionâ](https://www.naukri.com/code360/problems/reverse-an-array_8365444)
- Added [checkPalindromeString.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%206/checkPalindromeString.cpp): Checks Whther the string is pallindrome or not. â[L.T.Q.1â](https://www.naukri.com/code360/problems/check-palindrome-recursive_624386) â[L.T.Q.2â](https://leetcode.com/problems/valid-palindrome/)
- Added [fibonacciSeries.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%206/fibonacciSeries.cpp): Does printing and sumation of fibonacci series of n. â[L.T.Q.1â](https://www.naukri.com/code360/problems/print-fibonacci-series_7421617) â[L.T.Q.2â](https://leetcode.com/problems/fibonacci-number/description/)
---
### **Day 5: April 30, 2024**
- Added [print1ToN.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%205/print1ToN.cpp): Print 1 to n using recursion [Link to Questionâ](https://www.naukri.com/code360/problems/print-1-to-n_628290)
- Added [printNTo1.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%205/printNTo1.cpp):Print N to 1 using recursion [Link to Questionâ](https://www.naukri.com/code360/problems/n-to-1-without-loop_8357243)
- Added [printStringNTimes.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%205/printStringNTimes.cpp): Print N times a string using recursion. [Link to Questionâ](https://www.naukri.com/code360/problems/-print-n-times_8380707)
- Added [sum1ToN.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%205/sum1To.cpp): Sum of 1 to N Recursion and no loops. [Link to Questionâ](https://www.naukri.com/code360/problems/sum-of-first-n-numbers_8876068)
---
### **Day 4: April 29, 2024**
- Added [sumOfAllDivisors2](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%204/sumOfAllDivisors2.cpp): Gives total sum of all divisors of that number.FIXED TIME LIMIT [Link to Questionâ](https://www.naukri.com/code360/problems/sum-of-all-divisors_8360720)
- Added [printAllDivisorsSTL](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%204/printAllDivisorsSTL.cpp): Returns sorted the divisors of the number. [Link to Questionâ](https://www.naukri.com/code360/problems/print-all-divisors-of-a-number_1164188)
- Added [checkPrime.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%204/checkPrime.cpp): Checks whether a number is primeor not. [Link to Questionâ](https://www.naukri.com/code360/problems/check-prime_624934)
- Added [nOutputUsingRecursion.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%204/nOutputUsingRecursion.cpp): Printing 1 to N using Recursion and no loops. [Link to Questionâ](https://www.naukri.com/code360/problems/print-1-to-n_628290)
---
### **Day 3: April 28, 2024**
- Added [reverseOfANumber](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%203/reverseOfANumber.cpp): simple problem of reversing a integer. [Link to Questionâ](https://www.naukri.com/code360/problems/reverse-of-a-number_624652)
- Added [palindrome](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%203/palindrome.cpp): Returns whether the program in palindrome or not. [Link to Questionâ](https://www.naukri.com/code360/problems/palindrome-number_624662)
- Added [gcd1](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%203/gcd1.cpp): A code that finds gcd of two numbers. Version 1 [Link to Questionâ](https://www.naukri.com/code360/problems/hcf-and-lcm_840448)
- Added [gcd2](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%203/gcd2.cpp): A code that finds gcd of two numbers. Version 2 [Link to Questionâ](https://www.naukri.com/code360/problems/hcf-and-lcm_840448)
- Added [checkArmstrong](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%203/checkArmstrong.cpp):Returns whether the input in armstrong number or not. [Link to Questionâ](https://www.naukri.com/code360/problems/check-armstrong_589)
- Added [sumOfAllDivisors](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%203/sumOfAllDivisors.cpp): Gives total sum of all divisors of that number. [Link to Questionâ](https://www.naukri.com/code360/problems/sum-of-all-divisors_8360720)
---
### **Day 2: April 27, 2024**
- Added [Reverse Bits](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%202/reversedBits.cpp): This is A modearte difficulty problem which deals with bit manipulation. [Link to Questionâ](https://www.naukri.com/code360/problems/reverse-bits_2181102)
- Added [reverseNumber.cpp](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%202/reverseNumber.cpp): Reverses a number â[L.T.Q.1â](https://www.naukri.com/code360/problems/reverse-of-a-number_893271) â[L.T.Q.2â](https://leetcode.com/problems/reverse-integer/)
---
### **Day 1: April 26, 2024**
- Added [Pattern based Problems](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%201/patternProbelms.cpp): Various Beginner Patterns Based problems all in code. [Link to Questionâ](https://takeuforward.org/strivers-a2z-dsa-course/must-do-pattern-problems-before-starting-dsa/)
- Added [Count Digits](https://github.com/AskitEndo/DSA-Excercise/blob/main/Codes/Day%201/countDigits.cpp): Returns the total number of Digits that can divide the the number they reside in. [Link to Questionâ](https://www.naukri.com/code360/problems/count-digits_8416387)
---
## **Connect with Me**
If you have any suggestions, feedback, or just want to say hi, feel free to connect with me!
LinkedINđ€: [Ankit-Kumar-Singh(Askit-Endo)](https://www.linkedin.com/in/askitendo/)\
GitHubđŒ: [AskitEndo](https://github.com/AskitEndo)\
CodingNinjasđ„·đ»: [AskitEndo](https://www.naukri.com/code360/profile/AskitEndo)\
LeetCodeđœ:[AskitEndo](https://leetcode.com/u/AskitEndo/)\
GeeksForGeeksđ¶ïž:[askitendo](https://www.geeksforgeeks.org/user/askitendo/)Let's code and learn together! đ»âš