Day 2/45 of the #SDESheetChallenge
🚀Day 2 #SDESheetChallenge|Arrays
1. Kadane's Algorithm(Maximum Subarray Sum)✅
2. Sort an array of 0's 1's and 2's✅
(solved in 2 ways - a. count var method, b. DNFA)
3. Stock Buy and Sell✅
@striver_79@takeUforward_
Day 2 of 45 day #SDESheetChallenge by @takeUforward_ , @striver_79
today i learnt:
1. Kadane's algo✅
2. Sort colours (DNF algo)✅
3. Stock buy and sell (1D DP)✅
completed section 1 of the sheet. hope to stay consistent for the next 43 days!
Started the 45 Days SDE Challenge today.
🚀Day 1 #SDESheetChallenge|Arrays
1) Set Matrix Zeroes✅
(solved in two ways)
2) Pascal's Triangle✅
3) Next Permutation✅
(2 ways: stl method, solved fully with logic)
@striver_79@takeUforward_