Day 3 of #SDESheetChallenge ✅
Solved:
• Rotate Matrix
• Merge Overlapping Subintervals
• Merge Two Sorted Arrays
Learned/revised:
• In-place matrix rotation
• Interval merging using sorting
• Gap method for merging arrays without extra space
@striver_79@takeUforward_
Day 2 of #SDESheetChallenge ✅
Solved:
- Kadane's Algorithm
- Sort an Array of 0's, 1's and 2's
- Stock Buy and Sell
Learned/revised:
- Maximum subarray sum
- Dutch National Flag Algorithm
- Greedy approach for maximizing stock profit
@striver_79@takeUforward_
Woke up at 6am
Thought:
"1 more hour of sleep, then full DSA grind."
Next thing I know it’s 10:30 and my only achievement is optimizing sleep complexity to O(n).
Bro…
20 mins treadmill on full incline at 6 speed after chest + side delts + triceps feels like a software update for suffering.
Halfway through I realized:
losing weight is literally a job.