All Projects → Kadam-Tushar → Competitive-Programming-in-Java

Kadam-Tushar / Competitive-Programming-in-Java

Licence: other
All the important data structures and algorithms that I use in Competitive Prgramming

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Competitive-Programming-in-Java

competitive-programming
@wiwitrifai's solutions for various competitive programming contests
Stars: ✭ 33 (+83.33%)
Mutual labels:  competitive-programming, cp
travelling-salesman
Rules for Kiwi.com travelling salesman competition
Stars: ✭ 14 (-22.22%)
Mutual labels:  competitive-programming
oi.men.ci
Menci 的 OI 博客(源代码与网站文件)
Stars: ✭ 27 (+50%)
Mutual labels:  competitive-programming
GoogleCodeJam-2016
🏃 Python Solutions of All 26 Problems of GCJ 2016
Stars: ✭ 18 (+0%)
Mutual labels:  competitive-programming
TeamReference
Team reference for Competitive Programming. Algorithms implementations very used in the ACM-ICPC contests. Latex template to build your own team reference.
Stars: ✭ 29 (+61.11%)
Mutual labels:  competitive-programming
HackerEarth-Solution
Contains hackerearth solutions in python 3
Stars: ✭ 126 (+600%)
Mutual labels:  competitive-programming
rover
Rover is a command-line tool for learning programming interactively.
Stars: ✭ 35 (+94.44%)
Mutual labels:  competitive-programming
Popular Coding Questions Solution
Popular coding questions solution for interview preparation
Stars: ✭ 12 (-33.33%)
Mutual labels:  competitive-programming
Hacktoberfest-2021-Data-Structures-and-Algorithms
This repository is mainly open to those who are looking to make some PRs for the Hacktoberfest 2021 event. In this repository, you can add programs on Data Structures and some useful algorithms for Competitive Programming.
Stars: ✭ 49 (+172.22%)
Mutual labels:  competitive-programming
GPE-Helper
🚑 GPE 小幫手-拯救你我的程式檢定考試
Stars: ✭ 40 (+122.22%)
Mutual labels:  competitive-programming
learning-computer-science
Learning data structures, algorithms, machine learning and various computer science constructs by programming practice from resources around the web.
Stars: ✭ 28 (+55.56%)
Mutual labels:  competitive-programming
CP-Templates
Competitive Programming Templates
Stars: ✭ 28 (+55.56%)
Mutual labels:  competitive-programming
library
CompetitiveProgramming C++ Library
Stars: ✭ 134 (+644.44%)
Mutual labels:  competitive-programming
solutions
Solutions to online programming problems
Stars: ✭ 36 (+100%)
Mutual labels:  competitive-programming
ds-algo-placement-resources
A complete roadmap and resources for competitive programming for placement purpose.
Stars: ✭ 58 (+222.22%)
Mutual labels:  competitive-programming
GoCF
Contest parser for codeforces.com
Stars: ✭ 48 (+166.67%)
Mutual labels:  competitive-programming
Competitive Coding
Contains Solution for all type of Problems of Competitive Programming. Updates Frequently as any problem is solved.
Stars: ✭ 16 (-11.11%)
Mutual labels:  competitive-programming
CodeForces
Python solutions to CodeForces problems
Stars: ✭ 48 (+166.67%)
Mutual labels:  competitive-programming
cses-solutions
This repository contains my solutions to the CSES Problem Set
Stars: ✭ 45 (+150%)
Mutual labels:  competitive-programming
cphelper.nvim
Neovim helper for competitive programming. https://sr.ht/~p00f/cphelper.nvim preferred
Stars: ✭ 56 (+211.11%)
Mutual labels:  competitive-programming

Competitive Programming in Java

cp_icon

  • This repository contains all the important data structures and algorithms that I use in Competitive Programming.

  • I have cis_pie as my username on all coding platforms. You can view me on Codechef or Codeforces.

  • Feel free to use these codes and let me know if you find any bug.

Links

Data Structures
Algorithms
Strings
Maths related

Miscellaneous

Fast IO for JAVA : Template.

  • Taken this template from legendary coder uwi

  • Java is a little bit slower than C++/C and the main factor behind this is slow console input/output.

  • Java's Scanner, as well as BufferedReader class, is too slow. So the best option is creating your own input-output classes.

  • I had never faced Time Limit Exceed Error (i.e Code takes too much time because of an inefficient/wrong algorithm ) after I started using this template.

  • To use this template you have to write all your code in solve() method.

  • From main() method we are calling solve() method which is supposed to solve the asked problem.

Documentation of methods from this template :

  • INPUT METHODS

    • int x=ni() -to input single number Short form of nextInt()

    • long x=nl() -to input long number nextLong()

    • double x=nd() - to input double values nextDouble()

    • String x=ns() - to input string nextString()

    • char x=nc() - to input character nextChar()

    • int[] arr=na(int n) -to input array of size n i.e parameter is integer with value n. It will allocate a new array and return its reference. nextArray()

    • char [][] matrix =nm(int n,int m) this is method is used tor inputing character matrix nextMatrix()

  • OUTPUT METHODS

    • pn(Object o) - method is used to print anthing on console the parameter is Object is you can pass anthing. It is similar as System.out.println().

    • p(Object o)- Similar as System.out.print()

  • UTILITY FUNCTIONS

    • int x=max( int[] arr) -it will find max element from array.

    • int y=min(int [] arr) it will find min element from array.

    • int g=gcd(x,y) for finding gcd.

    • Implemented pair class because there is no inbuilt pair class. You can use the pair in Hashed Collections as well as Tree Collections because hashCode() and compareTo() methods are implemented in this pair class.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].