From climbing coding leaderboards to competing in ICPC regionals to constructing clever algorithms with clever friends, the Competitive Programming journey starts here. Write your first contest solution and learn what it takes to start solving challenging and often beautiful algorithms problems!
- Session 1: Your First Solve! https://tinyurl.com/intro-cp-slides-1
- Session 2: Math and I/O https://tinyurl.com/intro-cp-slides-2
- Session 3: Arrays https://tinyurl.com/intro-cp-3-slides
- Session 4: Sorting https://tinyurl.com/intro-cp-s4-slides
- Session 5: Binary Search https://tinyurl.com/intro-cp-5-slides
- Session 6: Intro to Dynamic Programming https://tinyurl.com/intro-cp-6-slides
- Session 1: https://tinyurl.com/intro-cp-1-contest
- Session 2: https://tinyurl.com/intro-cp-contest-2
- Session 3: https://tinyurl.com/intro-cp-3-contest
- Session 4: https://open.kattis.com/contests/otswcb
- Session 5: https://tinyurl.com/intro-cp-5-contest
- Session 6: https://tinyurl.com/intro-cp-6-contest
- Mini Contest: https://tinyurl.com/intro-cp-mini-contest
- Codeforces - join the UCLA Codeforces Group
- VS Code is a popular free and easy to use editor, and the C++ plugin is excellent.
- Windows Subsystem for Linux is a great way to get the g++ C++ compiler on your Windows computer, integrates with VS Code, and will come in handy for UCLA CS classes like 35L.
- Alternately, on Windows you will need to install Visual Studio
- Mac environment setup
- If you haven't compiled c++ code on your mac before, you will need to install clang, a c++ compiler. You can do so by running the
xcode-select --install
command on terminal, or downloading Xcode from the app store - Download VS Code for Mac, the superior IDE
- Add the C++ plugin in VSCode
- For more detailed instructions on this setup process, check out this post.
- If you haven't compiled c++ code on your mac before, you will need to install clang, a c++ compiler. You can do so by running the
- Headers on Mac
- Make sure to include the appropriate header files at the top of your cpp file. You can copy them from the template file in this directory.
- A commonly method to include the entire standard library in one line is including the bits/stdc++.h header file but this is not available on mac.
- Repl.it can be used for quick development if you don't want to go through the setup steps (although we encourage you to set up a local environment). You can access a code editor, compiler, and shell without any setup.