4 ms·
I have been wanting to get into competitive programming. I am quite an experienced programmer. Is leetcode still applicable, or are there other sites that are m
by logdahl 3y ago
I have been wanting to get into competitive programming. I am quite an experienced programmer. Is leetcode still applicable, or are there other sites that are more suited?
- matklad 3y agohttps://cses.fi/problemset/ https://cses.fi/problemset/ is by far the best resource I know.
- jhck 3y agoWorth mentioning that there's a companion book to this website: https://cses.fi/book/book.pdf https://cses.fi/book/book.pdf The problems are indeed of very high quality. But it can be a difficult place to start. For example, even the very first problem has an overflow gotcha built into it. Also, Kadane's Algorithm appears as an early problem even though several mathematicians and computer scientists failed to discover it: https://en.wikipedia.org/wiki/Maximum_subarray_problem#History https://en.wikipedia.org/wiki/Maximum_subarray_problem#Histo...
- baobabKoodaa 3y agoThe CSES book and problemset are amazing resources for learning.
- sinkwool 3y agoGreat resource, but it's hard to practice there as a beginner because there are no solutions (unless you solve the problem yourself). So you might have to get comfortable with being stuck. Which is fine when you're experienced, but will demotivate you if you're just starting.
- natrys 3y agoInteresting that they have Assembly, but not C. In practice it seems most people just use C++ (87.5%). Add Python3 (7.5%) and Java (5%) and 99% of submissions are accounted for.
- jhck 3y agoI think it's a fine place to start for the following reasons: * It has a large selection of problems with many good starter problems. * Once you've solved a problem, you can see how others have solved it (wish more sites had this feature). * You don't have to write I/O code, so you can just focus on the problem.
- sinkwool 3y agoLeetcode is fine: lots of supported languages, large community, lots of solutions and editorials. Here are some more resources: - USACO: https://train.usaco.org/ https://train.usaco.org/ and https://usaco.guide/general/ https://usaco.guide/general/ - Codeforces: https://codeforces.com/ https://codeforces.com/ the de facto standard community for competitive programmers, regular contests with editorials, huge archive of problems (https://codeforces.com/problemset https://codeforces.com/problemset) with pretty accurate difficulty ratings so you can focus on problems of suitable difficulty if you want to progress quickly. They also have an incipient EDU section: https://codeforces.com/edu/courses https://codeforces.com/edu/courses that covers basic algorithms with practice problems.