Harilakshmi S’ Post

🚀 Day 17/30 – LeetCode Java Challenge Back to a cleaner problem today — focused on tracking indices and minimizing distance. 📊 Result: ✔️ Accepted (899/899 test cases) ⚡ Runtime: 4 ms 💾 Memory: Could be improved 💡 What I learned: HashMaps are useful, but not always the most optimal choice Storing unnecessary data increases memory usage There’s often a simpler approach if you think deeper Let’s be honest: This solution works, but it’s not the most efficient in terms of memory. There’s a better way without storing full lists. Day 17 done. More focus on optimizing space, not just time. Bavani k Deepika Kannan Divya Suresh Hari priya B Devipriya R Archana J E Bhavya B Harini B Kezia H Vaishnavi Janaki #LeetCode #Java #DSA #ProblemSolving #Consistency #30DaysOfCode

  • graphical user interface, application

To view or add a comment, sign in

Explore content categories