3 ms·
If you want to learn it for job interviews, I've got to say, just trawling through hacker rank[1] practice questions for C++. Read the question, attempt the que
by Traster 5y ago
If you want to learn it for job interviews, I've got to say, just trawling through hacker rank[1] practice questions for C++. Read the question, attempt the question, read up on the theory behind the question and read the discussion pages. Then maybe attempt a similar question from some other very similiar sites. It's very possible to just cover all the possible questions and it's probably going to give you the tools you need to answer any interview coding test. The only real thing it sometimes doesn't give you is recognizing which algorithm to use for a specific problem - very often interview questions are very poorly disguised variations on "do you know what a dictionary is and how it's implemented".
To learn more deeply about algorithms I'd probably start off with MIT courses.
[1] - https://www.hackerrank.com/domains/cpp https://www.hackerrank.com/domains/cpp