Anchal Gupta (@AnchalGupta009) header
Anchal Gupta (@AnchalGupta009) profile picture

ECE’27 MERN Stack + DSA Building • Coding • Learning

Joined April 2025
Day 15: Minimum Positive Sum Subarray 🎯 Approach: Brute Force + Prefix Sum Explore subarrays → Check length & positive sum → Track minimum. Time: O(n²) #LeetCode #CPP #DSA #ProblemSolving
10
142
Day 14: Count Non-Decreasing Subarrays After K Operations 🎯 Approach: Sliding Window + Monotonic Stack Today I learned how to combine monotonic stacks with sliding windows to efficiently handle range operations and maintain a valid window. #LeetCode #CPP #DSA #ProblemSolving
7
129
Day 13: Longest Strictly Increasing or Strictly Decreasing Subarray 🎯 Approach: Greedy + Single Pass Track increasing & decreasing lengths → Update maximum. #LeetCode #CPP #DSA #ProblemSolving
1
1
16
260
Day 12: Minimum Cost to Acquire Required Items 🎯 ⚙️ Approach: Greedy Compare individual vs. combined costs → Choose the cheapest combination. 💡 Takeaway: Buying extra items can sometimes reduce the overall cost. ⏳ Time: O(1) #LeetCode #CPP #DSA #ProblemSolving
9
200
Day 11: Climbing Stairs II 🎯 Approach: Dynamic Programming Try jumps of 1, 2 or 3 steps → Track minimum cost at each step. Time: O(n) #LeetCode #CPP #DSA #ProblemSolving
1
4
177
Day 10: Process Tasks Using Servers 🎯 Approach: Two Heaps + Greedy Track available servers → Assign the lowest-weight server → Manage busy servers by finish time. Time: O((n + m) log n) #LeetCode #CPP #DSA #ProblemSolving
10
316
Day 9: Count Zero Request Servers 🎯 Approach: Sorting + Sliding Window Sort logs → Process query intervals → Count inactive servers. Takeaway: Sliding windows help efficiently answer range-based queries. #LeetCode #CPP #DSA #ProblemSolving
1
1
16
348
Day 7: Find the Distance Value Between Two Arrays 🎯 Compare each element → Check the distance condition → Count valid elements. Time: O(m × n) #LeetCode #CPP #DSA #ProblemSolving
1
21
318
Day 6: Minimum Moves to Equal Array Elements III 🎯 ⚙️ Approach: Greedy Find the maximum → Make every element equal to it. Takeaway: The maximum element gives the optimal target. ⏳ Time: O(n) GitHub: github.com/anchal-dev/Leetco… #LeetCode #CPP #DSA #ProblemSolving
1
16
397
Day 5: Minimum Moves to Equal Array Elements II 🎯 ⚙️ Approach: Sorting + Median Find the median → Calculate absolute differences. Takeaway: Median minimizes total absolute differences. Time: O(n log n) GitHub: github.com/anchal-dev/Leetco… #LeetCode #CPP #DSA #ProblemSolving
1
14
363
Day 4: Today's LeetCode Daily: 453. Minimum Moves to Equal Array Elements. Today's takeaway: Sometimes, thinking in reverse makes a problem much easier. Instead of incrementing n-1 elements, think of decrementing one element. #LeetCode #DSA
3
16
461
Day 03: Solved today's LeetCode Daily 3665 :Twisted Mirror Path Count. #LeetCode #DSA
1
10
246
Day 03: Solved today's LeetCode Daily 3665 :Twisted Mirror Path Count. #LeetCode #DSA
9
144
Day 2 of getting back on track! Solved LeetCode 3970 today. Graphs are getting interesting 👀 See you tomorrow with another one. #LeetCode #DSA
12
277
Day 1 of restarting my DSA journey! Back to solving problems, strengthening my fundamentals, and becoming a better problem solver every day. LeetCode 3841 : Palindromic Path Queries in a Tree Let's go again! 🔥 #DSA #LeetCode #100DaysOfCode #Consistency #CodingJourney
2
21
601
Day 1 of starting over! 🌱 I stopped posting my DSA journey for a while, but it's time to get back on track. Back to solving problems, learning from mistakes, & showing up every day. Not starting from zero, just starting again. Let's see where consistency takes me! #Coding
4
21
774
Still can’t believe Rohit Bhaiya was actually at my college! 🥹✨ Getting to see him in person was such an amazing experience. ❤️ #coderarmy @rohit_negi9 @CoderArmy
2
1
16
380