An open API service indexing awesome lists of open source software.

https://github.com/propilideno/cp-tips

Tips for C++ Competitive Programming
https://github.com/propilideno/cp-tips

algorithms cheatsheet cheatsheets codeforces competitive-programming cpp cpp11 cpp14 cpp17 cpp20 cpptemplates data-structures leetcode quickstart templates tips uva vjudge

Last synced: 2 months ago
JSON representation

Tips for C++ Competitive Programming

Awesome Lists containing this project

README

        

# Competitive Programming Tips :ninja::dart:
[![Security Check](https://github.com/propilideno/cp-tips/actions/workflows/link-integrity-check.yml/badge.svg)](https://github.com/propilideno/cp-tips/actions/workflows/link-integrity-check.yml) [![Release](https://img.shields.io/github/release/propilideno/cp-tips.svg)](https://github.com/propilideno/cp-tips/releases/latest) [![Community](https://img.shields.io/badge/CP%20Community%20-Join_us-orange?style=flat-square&logo=c%2B%2B)](https://github.com/propilideno/cp-tips/discussions/5)

[ [**:scroll: Templates :scroll:**](#filling-folder-with-cpp-txt-and-makefile-mag_right) | [Compile Example](#running-and-debugging-man_technologist) | [Usage Example](#template-usage) | [:page_facing_up: Cheat Sheets :page_facing_up:](#cheat-sheets-and-references-page_facing_up) ]

Try it now in your terminal: `bash <(curl -sL bash.propi.dev/cp)`

![image](https://github.com/propilideno/cp-tips/assets/105776775/20ab9764-fdfa-4051-97f4-a8f9a9e48f8e)

C++ Competitive Programming tips to **improve your thinking speed**, making your life much easier.
- You'll be able to **quickstart** your coding problems.
- Improving your **productivity** while solving coding problems by using our **templates.**
- Providing a better knowledge access with **Cheat Sheets** and quick reference material and links.

![cp-tips](https://github.com/propilideno/cp-tips/assets/105776775/ed7a636c-f4dd-4849-8e4f-6fa2e2bc5379)

## Coding Problems Template :scroll:

Motivation behind `buildLab.sh`

![image](https://github.com/propilideno/cp-tips/assets/105776775/8d2599ac-167f-47ca-8789-3c7627996e73)

If you have to do lots of exercise and rewrite every single template, you don't need to do this anymore. With our templates, you can fill a folder with usefull files, perfect for your job.

### Filling folder with `.cpp`, `.txt` and `Makefile` :mag_right:
Open the `terminal` and type:

**Current** version (**Main** branch)
```
bash <(curl -sL bash.propi.dev/cp)
```
**Upcoming** version (**Develop** branch)
```
bash <(curl -sL bash.propi.dev/upcoming/cp) up
```

### Running and Debugging :man_technologist:
After runned `bash script`, you can use **Makefile** to run and debug your coding problems.
![image2](https://github.com/propilideno/cp-tips/assets/105776775/24fbb977-bdee-425c-8f45-e27cdea67191)

Example of usage if you want to **run**, **debug**, **gdb** coding problem D:
```
make run-d // Run with minimum compile flags
make debug-d // Run with a lot of compile flags
make gdb-d // Run with gdb
make valgrind-d // Run with valgrind
```

### Template usage
Using **standard** or **complex** templates, you can write less for the same solution

![image](https://github.com/propilideno/cp-tips/assets/105776775/64f5749f-76ee-4801-bcc4-3f526dc0e25d)
![Usage2](https://github.com/propilideno/cp-tips/assets/105776775/be5fab9d-f6ad-421d-b725-63deaaed7659)

## Cheat Sheets and References :page_facing_up:
- [Best C++ CheatSheet](https://hackingcpp.com/cpp/cheat_sheets.html): The most complete and the best C++ CheatSheet
- [Data Structures and Algorithms](https://dev.to/iuliagroza/complete-introduction-to-the-30-most-essential-data-structures-algorithms-43kd): 30 most essential Data Structures and Algorithms
- [Test Cases](https://www.udebug.com/): Site with test cases for lots of coding problems.
- [C++ Reference](https://cplusplus.com/reference/): When searching, if you want example of usage click in constructor.
- [C++ Tricks](https://www.geeksforgeeks.org/c-tricks-competitive-programming-c-11): Some C++ tricks, usefull for Competitive Programming
- [Modern C++ Features](https://github.com/AnthonyCalandra/modern-cpp-features): Learn the difference between C++ versions here. Like C++11, C++17.
- [CP Algorithms CheatSheet](https://github.com/hackslash-nitp/cheat-sheet): Usefull reference for Competitive Programming Problems.
- [75 Common Coding Problems](https://docs.google.com/spreadsheets/d/1awb62Klhzvmx_L0-ncXwItvjkg6Ngwrczx5qYNtCZhs/edit#gid=0): Solution for most common Coding Problems.

## Consider giving us a star :star:
If you have used or benefited in any way, we kindly ask you to show your support by giving us a star :star: on GitHub. Your star is a valuable feedback for us, and it encourages us to continue improving the project.

We are committed to delivering the best experience possible, and your feedback plays a crucial role in achieving this goal. So, if you enjoyed, we would greatly appreciate your support through a star on our GitHub repository.

Thank you for your interest and contribution to our project. Your support means a lot to us!

## LICENSE
[MIT License](LICENSE)