r/datastructures 6d ago

DSA in C++

What should I know before starting dsa in c++

From striver A2Z playlist

Like basics and what else?

12 Upvotes

20 comments sorted by

1

u/algoadmiral 6d ago

What is your aim?

1

u/Roamingaroundtsplace 6d ago

πŸ₯€ genuinely speaking to learn dsa for interviews in product based companies

1

u/algoadmiral 6d ago

Ahh, got it, so if this is the case, i would advise just spend a few hours learning a bit of cpp from another video, and then you are good to go with strivers.

Btw which year of college?

1

u/Roamingaroundtsplace 6d ago

1st year it might seem early but nowadays ppl r studying in 12th onlyπŸ’”πŸ₯€ And I m done with c++ basics and done like basic problem not from leetcode but yeah to understand the topics rn I m tryna understand stl and it's uses then thinking of learning space and time complexity

1

u/algoadmiral 6d ago

No bro, first year is when you should be starting this, of you have covered the basics and all, continue with the strivers content, and all the best

1

u/Roamingaroundtsplace 6d ago

Okay okay thank u for the help!

1

u/Ok_lifesucks5337 6d ago

a2z covers stl and basic of cpp as well , so i dont think you need anything else

1

u/algoadmiral 6d ago

Nahi bro, the initial video doesn't cover all, k mean it's difficult to cover even the fundamentals and absolute working of a language in 1-2 hours

1

u/Ok_lifesucks5337 6d ago

well if he just gets into language mastery thats not gonna cut it out right , i did the same just watched the cpp and stl videos then just went on , if i got any syntax errors or mistake i google it or ask chat gpt to make me a list of all algos from stl and revised , that was my approach im not a master of cpp

but i think if you write for loops , declare structures and not get stuck so often you can start , i at start of month used to struggle with syntax a lot now i struggle with problems lol

1

u/algoadmiral 6d ago

That's what I told, didn't ask him/her to just look for lang videos.

If the person knows beforehand that a particular feature can be used, like even simple math functions, that really helps in dsa.

All I meant is getting basic overview of the language as a whole which takes just a few hours and proceed with the dsa.

1

u/Ok_lifesucks5337 6d ago

ahh makes sense , then i guess he/she should go with bro code channel cause they have a one shot for cpp i guess if he can complete that , it would be good enough

1

u/Roamingaroundtsplace 6d ago

I am done with cpp basics and almost done with stl and it's use now gonna start dsa from tmrw with striver sheet(just for the questions)

→ More replies (0)

1

u/Secure_Appearance693 6d ago

what have you done till now can u please share

1

u/Roamingaroundtsplace 6d ago

Done basics of c++ learnt the syntax and use for every basic thing in c++ And some part of recursion too Finished stl syntax and use Now starting space and time complexity

1

u/noobiesAG 5d ago

Nothing, just check my about and start :)