These are the best of all books available, for mastering Competitive Programming:
Competitive Programming 3: The New Lower Bound of Programming Contests Book by Felix Halim and Steven Halim, 423 pages.
Guide to Competitive Programming: Learning and Improving Algorithms Through Contests A textbook by Antti Laaksonen, 286 pages.
Programming Challenges Book by Steven Skiena, 376 pages.
Introduction to Algorithms Book by Thomas H. Cormen, Charles E. Leiserson, Ronald Rivest, and Clifford Stein, 1216 pages.
The Algorithm Design Manual A textbook by Steven Skiena, 742 pages.
Concrete Mathematics A textbook by Donald Knuth, Oren Patashnik, and Ronald Graham, 648 pages.
Cracking the Coding Interview Book by Gayle Laakmann McDowell, 696 pages.
Computational Geometry: Algorithms and Applications A textbook by Marc van Kreveld, Mark de Berg, and Otfried Cheong, 388 pages.
Estructuras de Datos y Algoritmos Book by Alfred Aho, 427 pages.
Data Structure Practice: For Collegiate Programming Contests and Education Book by Jiande Wang and Yonghui Wu, 508 pages.
Daily Coding Problem: Get Exceptionally Good at Coding Interviews by Solving One β¦ Book by Alex Miller and Lawrence Wu, 300 pages.
Programming Pearls Book by Jon Bentley, 258 pages.
Programming Interviews Exposed Book by Eric Giguere, John Mongan, and Noah Kindler, 253 pages.
Competitive Programming in Python: 128 Algorithms to Develop Your Coding Skills Book by Christoph DΓΌrr and Jill-JΓͺnn Vie, 250 pages.
But for an Undergrad Student, the best books to learn programming, DS & Algo are: 1, 5, 9, and 11.
7 is one of the best books, but it takes comparatively more time to complete it.
13 is completely for Interviews and nothing else.
14 is a good book for those who have completed at least a few mentioned above. All of these are available on Amazon, Google Books, and Walmart as well.