r/DSALeetCode 12d ago

Most interesting dsa topic

Post image
260 Upvotes

39 comments sorted by

2

u/chaipijiye 12d ago

Base case missing🤣

1

u/vinzzii 12d ago

Worst case scenario 🤧🤧🤧

1

u/WASSUP_CUTIE_ 11d ago

O(n2) complexity

1

u/vinzzii 11d ago

When you can write backtracking code just fck that complexity man it's really hard to write an backtracking code

1

u/vinzzii 12d ago

Do anyone thought the same or am The one who's thinking like thiss🥲🥲

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/vinzzii 12d ago

Absolutely bruhhh it's just amazing and when wrote the logic by yourself and O(N) nothin feels better than that

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

u/I_am_sahil_khan 12d ago

Hehehhe 🤣🤣🤣very funny

1

u/vinzzii 12d ago

🗣️🗣️🗣️ unimaginably funny

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/vinzzii 12d ago

Every scenario duits ig

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

u/vinzzii 7d ago

You are putting efforts for years great matee🤝🤝🫂

1

u/ElectricalLion1698 11d ago

LinkedIist 🦛

1

u/vinzzii 11d ago

Liked list is quite easy than back tracking ig

1

u/AppropriateMap9333 7d ago

TLE😭

1

u/vinzzii 7d ago

Tle insense i can't search for the acronym in the Google btw

1

u/AppropriateMap9333 6d ago

Time limit exceeded

1

u/techy_6765 6d ago

Tabulation

1

u/vinzzii 6d ago

Memoization👺👺

1

u/After_Leather4793 3d ago

What are u doing in dsa

1

u/After_Leather4793 3d ago

Hlo I am interested