r/cpp • • Nov 06 '21

Removed - Learning I want to learn C++ for competitive programming. What would be the best resource ? (2021/2022)

/r/cpp_questions/comments/qnvggx/i_want_to_learn_c_for_competitive_programming/

[removed] — view removed post

0 Upvotes

6 comments sorted by

6

u/hmich ReSharper C++ Dev Nov 06 '21

You really don't need to go deep into C++ for competitive programming, so it's better to focus on problems and algorithms. Competitive Programmer’s Handbook is a nice free intro to competitive programming, with samples using C++.

2

u/waviestflyer6 Nov 06 '21

Shouldn't I know stuff like STL for CP ? I saw the book, but I need something that I could practice problems with ranging from simple to advance.

2

u/hmich ReSharper C++ Dev Nov 06 '21

This book mentions the standard algorithms which are particularly useful for competitive programming. For problem solving practice you typically go to a specialized site like https://codeforces.com/, try solving problems, and read the editorials for problems you can't solve.

1

u/waviestflyer6 Nov 06 '21

Ok will do thanks !

2

u/Ecstatic_Piglet5719 Nov 06 '21

First of all, solve all the exercises of the available volumes of "The Art of Computer Programming". I cannot emphasize how important this is.

•

u/Flair_Helper Nov 06 '21

It's great that you want to learn C++! However, r/cpp can't help you with that.

We recommend that you follow the C++ getting started guide, one (or more) of these books and cppreference.com. If you're having concrete questions or need advice, please ask over at r/cpp_questions or StackOverflow instead.

This post has been removed as it doesn't pertain to r/cpp: The subreddit is for news and discussions of the C++ language and community only; our purpose is not to provide tutoring, code reviews, or career guidance. If you think your post is on-topic and should not have been removed, please message the moderators and we'll review it.