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

In summary, If you are looking to pursue a career in coding, it is important to study algorithms and data structures, as well as practice coding through exercises and projects. While learning C++ is a good choice, you may also want to consider learning a graphics programming library such as sfml, allegro, or sdl. In terms of learning resources, the book "Effective C++" by Scott Meyers is highly recommended, as well as his other books "More Effective C++" and "Effective Modern C++." It is important to not just read a textbook, but to actively work through exercises and projects to truly learn a subject.
  • #1
shivajikobardan
674
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?
 
Physics news on Phys.org
  • #3
One does not learn a subject by reading a textbook. One learns a subject by working through a textbook.
 
  • #4
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.
 

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

What is the best C++ book for beginners to learn algorithms and data structures?

"Data Structures and Algorithms in C++" by Adam Drozdek is often recommended for beginners. It provides a clear introduction to algorithms and data structures while using C++ as the programming language.

Which C++ book offers the most comprehensive coverage of algorithms and data structures?

"Introduction to Algorithms" by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein, often referred to as CLRS, is highly comprehensive. Although it is not C++ specific, it is widely regarded for its thorough coverage of algorithms and data structures. Pairing it with C++ resources can be very effective.

Is there a C++ book that includes practical coding examples for algorithms and data structures?

"Algorithms in C++" by Robert Sedgewick and Kevin Wayne is a great choice for practical examples. It includes detailed code examples and explanations, making it easier to understand how algorithms and data structures work in C++.

What book is recommended for advanced learners of algorithms and data structures in C++?

"The Algorithm Design Manual" by Steven S. Skiena is excellent for advanced learners. It offers deep insights into algorithm design and analysis, and while it is not C++ specific, it includes practical advice and examples that can be implemented in C++.

Are there any C++ books that focus on both theoretical and practical aspects of algorithms and data structures?

"Data Structures and Algorithm Analysis in C++" by Mark Allen Weiss is highly recommended. It balances both theoretical concepts and practical implementation, making it suitable for a comprehensive understanding of algorithms and data structures in C++.

Similar threads

Back
Top