22/11/25 @LeetCode POTD
Use mod to see how far values are to become 0 or 3 so they become divisible.
If mod equals
1 = we subtract 1 (1 operation)
2 = we add 1 ( 1 operation)
essentially boils downl to if mod != 3 add 1.
#LeetCode#Coding
is the leetcode streak counter broken today?
solved today's potd but it did not increment the count.
Though the transition from 0 to 1 doesn't matter lol
#LeetCode
Clocking in 12+ hours everyday (sometimes even on weekend) though there’s no time restrictions at work. Feels good to grow but sometimes I wonder at what cost.
Anyways, I hope it motivates you to put in the hard work because at the end that is what matters. Good luck!
After a long time
27/10/25 @LeetCode POTD
We need to find 2 neighbouring rows that have atleast one 1. Keep a prevCnt to keep track of prev valid row. Calculate currCnt if it has atleast one 1 then we can update the ans as per prev * curr.
#dsa#LeetCode
Writing a lld and getting is approved by the team is gotta be difficult and exciting part of the job at the same time ;)
No sleep/work schedule
Dry run solutions
Pen paper
Make pocs
Draw/write
That is why I haven’t been posting lately.
How are y’all?
@HVasani3301 Glad to hear that!
It’s going good. The process of learning , understanding and getting better at something is what I love so painful process but love the pain haha.
11/10/25 @LeetCode POTD
we have option for every index to pick or not pick it. To not check the previous -1, and -2 we sort the array and use recursion to skip forward steps in this way we take care of the not_take element's prev vals. Use freq map to count all the occurrences.
Hey everyone busy with work and also broke my 385 day streak sucks :(
10/10/25 @LeetCode POTD
Think about it in bottom up dp.
from n-k to n-1 we will exceed n's boundary
from n-k-1 to 0 we can simply add the val at i+k to get the final res
iterate through the ans arr to get max
30/09/25 @LeetCode POTD
On trying we find that the problem boils down to MCM pattern. Too tired and hence did not solve it bottom up.
TC-O(n^3)
SC-O(n^2)
#DSA#Coding
132 Followers 151 FollowingDSA -Java - Web dev - Python-
Code is my canvas, logic is my brush—crafting solutions one bug at a time, while levelling up daily in the art of tech.
2K Followers 3K FollowingIIT Guwahati Graduate || Building scalable products for global clients || Writing about backend engineering, AWS, and applied AI.
132 Followers 151 FollowingDSA -Java - Web dev - Python-
Code is my canvas, logic is my brush—crafting solutions one bug at a time, while levelling up daily in the art of tech.
2K Followers 2K Following'The idea is to die as young as late as possible' | Hare Krishna 💜| Radhe Radhe 💛| My Rant 📝 | Cricket 🩵 45 🩵 93 🩵 18 🐐 | 24 Graduate CSE 💻
260 Followers 934 FollowingI can build IT Infrastructure and IT Services. My skills range from Linux administration, VoIP, Virtualization Services like VMware & Proxmox VE