100DaysOfCode: Array Problems on LeetCode

Good evening, folks 👋 Day 2–3 / 100 — #100DaysOfCode Maintained a 2-day consistency streak by focusing on core array problems on LeetCode and reinforcing fundamental problem-solving patterns. ✅ Problems Solved 121. Best Time to Buy and Sell Stock → Optimized using a single-pass greedy approach by tracking minimum price and maximum profit. 283. Move Zeroes → In-place solution using the two-pointer technique with O(1) extra space. 26. Remove Duplicates from Sorted Array → Efficient slow–fast pointer strategy leveraging the sorted property. 1. Two Sum → Solved using a hash map to achieve O(n) time complexity. 🔍 Key Takeaways Most array problems reduce to pattern recognition (two pointers, hashing, greedy). Writing optimal solutions is easier once constraints and invariants are clear. Revisiting “easy” problems with an optimization mindset is still valuable. #100DaysOfCode #LeetCode #DSA #ProblemSolving #SoftwareEngineering #Consistency

To view or add a comment, sign in

Explore content categories