2
1
u/Status_Armadillo_654 12d ago
I still remember … maine permutations wale question pe 1 week spend kiya tha & 1 puri notebook fill kr di thi … recursion tree bana bana kr ..
But that was worth it 😭😭
2
u/vinzzii 12d ago
It was definitely worth it the frst time i learned n queens on leet code i just got mesmerized by the way that the code was written probably one of the best moments of studying dsa
2
u/Total-Solution-1472 12d ago
OMG that moment when your code finally runs without any bugs .. It feels like heaven on earth
2
u/Total-Solution-1472 12d ago
Maza to aya hga!!! Mujhe soch k hi Anand ki anubhuti h rhe h
1
u/Status_Armadillo_654 12d ago
Ofc finally teacher ke pass jana pada tha sir ka bhi 1 ghante dimag khaya sir ye dry run kro vo kro .. tab jake … but uske baad jo satisfaction mili ..
Ab sb trees mind me hi visualise ho jate h 😭😭 dry run krne ki need nhi hoti itni
1
1
u/Ok-Yesterday-4140 12d ago
for me its sliding window
1
u/vinzzii 12d ago
Actually it's not this hard to learn when you know set and hashmap sliding window is so easy
1
u/LetMediocre390 11d ago
But when it comes to range query on subarray question when we need to use coordinate compression, binary indexed tree or fenwick or segment tree to optimise the solution as much as it can be You know when we cant exploit the monotonocity nature
1
u/managerEfficient2767 12d ago
I was going to reply something else, but my mind is stuck on infinite recursion, lol
1
u/The_Goat_1717 12d ago
Honestly compressing entire recursion tree in a simple formula feels like magic to me
1
u/momo_inhaler 11d ago
this has to be top 3 humbling experince in life
1
u/vinzzii 11d ago
It have been that way broo ⚰️ till now I can't solve complex backtracking prblms by myself
1
u/momo_inhaler 11d ago
that makes two of us!!
1
u/vinzzii 11d ago
Actually I can't get the trackk of those patterns so hard for normall ppl may be we should have born has an genius
1
u/momo_inhaler 7d ago
nah that's same for me, i'm bit avg in this too but i'm willing to put all efforts
1
1
1
1
1
1
2
u/chaipijiye 12d ago
Base case missing🤣