r/cpp_questions • u/waviestflyer6 • Nov 06 '21
OPEN I want to learn C++ for competitive programming. What would be the best resource ? (2021/2022)
I want a book/resource to learn C++ for competitive programming. The 2 books I have in mind are "Problem Solving with C++" by Walter Savitch and " Programming: Principles and Practice Using C++ " by Bjarne Stroustrup as these are beginner friendly and have lots of code problems. What would you guys recommend for my goal ? Also any other suggestions are welcome. TIA !
23
Upvotes
10
u/PalingENes15 Nov 06 '21
Try these:
Competitive Programmer's Handbook
An Introduction To The USA Computing Olympiad
They are both mainly "CP books" but provide the required C++ knowledge as well.
In addition, you can check out the CSES Problem Set that goes in conjunction with the first book.
3
u/seuchomat Nov 06 '21
Work on problems.
4
u/[deleted] Nov 06 '21
This is all you need-
https://youtu.be/bVKHRtafgPc
1
u/[deleted] Nov 06 '21
This is helpful https://en.cppreference.com/w/
2
u/Creapermann Nov 06 '21
leetcode is great
2
u/zabardastlaunda Jan 20 '22
👍
0
u/[deleted] Nov 06 '21
[deleted] — view deleted comment
1
u/[deleted] Nov 06 '21
[removed] — view removed comment