This is my personal C++ library designed specifically for competitive programming. It contains a variety of data structures, algorithms, and other utilities commonly used in competitive programming. Each component of this library is designed to be drop-in usable—no setup or external dependencies required. The entire library is designed to have sections that are copy-pasteable into a single file for contest submission.
Since the core idea of this library is to copy-paste sections from it into your own code I recommend keeping a local copy of the library in an easy to access location:
git clone https://github.com/BrandonPacewic/CompetitiveProgrammingFrom there you can:
- Directly copy code from
cpl/incandcpl/srcinto your own code. - Include them locally in your own code for local practice.
- Test against the provided test cases in
test/for your own algorithm development.
Note
As of late, this project has shifted focus toward library design over contest utility. The copy-paste guarantee may no longer apply and various sections will have internal dependencies.
Copyright (c) Brandon Pacewic
SPDX-License-Identifier: MIT