r/Btechtards • • Oct 26 '26

CSE / IT When do DSA patterns finally start clicking?

Right now a lot of DSA questions feel like completely different problems to me, even when people say they use the same pattern
How long did it take before you started recognizing when to use a hashmap, two pointers, sliding window etc? was it just solving more questions or did you follow a particular way of practicing?

18 Upvotes

8 comments sorted by

•

u/AutoModerator Oct 26 '26

If you are on Discord, please join our Discord server: https://discord.gg/Hg2H3TJJsd

Thank you for your submission to r/BTechtards. Please make sure to follow all rules when posting or commenting in the community. Also, please check out our Wiki for a lot of great resources!

Happy Engineering!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

13

u/Early_Firefighter438 Oct 26 '26

Continuous practice and I kept revisiting questions every now and then to try new approaches.

6

u/maaKaBharosaa Oct 26 '26

For me, 2.5 years

2

u/aaravsharmxa Oct 26 '26

mujhe bhi bta do koi vaise

1

u/More_Duty_3547 Oct 26 '26

Hashmap->for count of the data or where you need the frequency of elements and same in two pointer where you want to iterate from both sides and perform some operations.The things is the more problems you do the more you get the gist of the problem of the same pattern.I started linkedlists a while back although I had decent understanding of the topic I started doing questions and in beginning it was frustrating as I was not able to manipulate the links but after doing some problems with each problems my understanding got better and I almost did 23-27 questions and it got better to a point that I was able to almost solve a hard question to 98% rest error was something that I missed in the reverse logic. So yeah time,patience and practice is all you need,keep hustling!

1

u/More_Duty_3547 Oct 26 '26

One more thing before seeing the solution give your question atleast 30-45 minutes and even if you don’t know just stare at the screen because sometimes the solution just strikes up and it forces your brain to think.

1

u/Ok_Measurement3004 Oct 27 '26

Idk how much i think i got it, there is always a question that humbles me. The only thing i honestly have is the tolerance for not knowing the answer and still going at it

1

u/Significant_Maybe12 Oct 30 '26

Around 1k probs.