Which C++ book is best for learning algorithms and data structures?

  • Context: Courses 
  • Thread starter Thread starter shivajikobardan
  • Start date Start date
  • Tags Tags
    Algorithms C++
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 8K views
shivajikobardan
Messages
637
Reaction score
54
1686155537799.png

1686155619753.png

As I said earlier, I've already grasped basics of C++. Since my ultimate goal is to work in coding industry, for interviews, I need to prepare for algorithms and data structures, grind leetcode. Between C++ and Java, I choosed C++ because that was taught in our university.

I won't read the first book line by line. I will start from exercises of loops and complete 20% of all exercises. It'll take at least 6 months of weekend studies for me to get there.

Another plan is to do graphics programming. The book by Tony Gaddis is so good for me. Only problem, it uses darkgdk which is very much outdated. So, if you've any recommendations for libraries in C++ like sfml, allegro, sdl, etc, Please recommend. Recommend those which is similar to darkgdk architecture. This book will also take me 6 months of full time weekend studies to finish.

Which one will be more beneficial to my learning?
 
on Phys.org
Reply
  • Like
Likes   Reactions: DEvens and malawi_glenn
Vanadium 50 said:
One does not learn a subject by reading a textbook. One learns a subject by working through a textbook.
that's why I've picked a book which is actually built with exercises and projects.
 
Hey, here are some best C++ books to learn algorithms and data structure.
1. Data Structure and Algorithm Analysis in C++ by Mark Allen Weiss
2. Data Structure and algorithm in C++ by Adam Drozdek
3. Algorithms in C+. Part 1-4: Fundamentals, Data Structure, Sorting, Searching by Robert Sedgewick
4. Data Structure and Algorithms made easy by Narasimha Karumanchi
5. Algorithms and Data Structure in C++
Hope this will help.