Skip to content

RAJ8664/CP

Repository files navigation

Competitive Programming Templates

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

Running tests

You can run both Python and Java tests with a single command:

./run_tests.sh

NOTE:

Let me know if you find any implementation error !!!

About

Competitive Programming Toolkit | Ready-to-use Java & C++ templates, automated stress testing, and test case generation for efficient problem solving

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors