This repository contains a collection of competitive-programming templates and utilities in C++, Java and Python. It is organised to be a personal snippet library for solving algorithmic problems quickly during contests.
- code.cpp : C++ contest template (reads from input.txt and writes to output.txt when local)
- Main.java : Java contest template with many helper classes (takes input from -> input.txt and produces output -> output.txt when local)
- python_templates/: Python implementations of common DS/algorithms (LCA, segment tree, DSU, ...)
- JAVA_Templates/: Java templates (segment tree, trie, etc.)
- run_cpp.sh / run_java.sh : helper scripts to build/run locally
You can run both Python and Java tests with a single command:
./run_tests.shLet me know if you find any implementation error !!!