Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aksh-bansal-dev/javacompetitiveprogramming
My java template for competitive programming.
https://github.com/aksh-bansal-dev/javacompetitiveprogramming
Last synced: 25 days ago
JSON representation
My java template for competitive programming.
- Host: GitHub
- URL: https://github.com/aksh-bansal-dev/javacompetitiveprogramming
- Owner: Aksh-Bansal-dev
- Created: 2021-02-01T18:42:24.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-10T17:12:58.000Z (about 2 years ago)
- Last Synced: 2024-11-20T11:05:24.753Z (3 months ago)
- Language: Java
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Competitive Programming
My java setup for competitive programming.
## Contents
- Java template
- VScode
- Snippets for java
- Shortcut to compile and run `Solution.java`
- Vim session
- Testcase generator
- A shell script to stress test
- A shell script to run java/c/cpp/python program
- Some frequently used data structures/algo in java.## How to use
- Run `npx java-comp` to copy template to current directory
- Copy code from `template.java` to `Solution.java`
- Code your solution in `Solution.java`
- Run (VS Code)
- Enter testcase in `input.txt`
- Press `Ctrl`+`Shift`+`B` to run your solution and print output in `output.txt`
- Run (General)
- Run `./run.sh` to run `Solution.java` with input from `input.txt` or you can specify `./run.sh ABC.java` to run `ABC.java`.
- If you can't find bug then
- Enter correct solution in `Brute.java`
- Adjust testcase generator according to the question
- Run `./auto.sh` in shell and you will get a failing testcase.