Competitive-Programming-Algorithms GitHub Details, Stars and Alternatives | OpenRepoFinder
ShivamSinghal1 / repository
Competitive-Programming-Algorithms
The purpose of this repository is to get all the Algorithms required for Competitive Programming at one place. This will be very helpful. Also one can contribute to this repository and learn something from this.
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
52
Community adoption25% weight
30
Maintenance state20% weight
40
License clarity10% weight
0
Project information10% weight
100
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
COMPETITIVE PROGRAMMING ALGORITHMS
The purpose of this repository is to get all the Algorithms required for Competitive Programming at one place. This will be very helpful.
Add a Competitive Programming Algorithm other than the mentioned in the repository.
Please do not copy from the internet and then paste it here. Try to implement on your own.
Try to generalize the Algorithm.
The purpose is to learn something from this.
If you implement some algorithm from this repository and found some issue , Raise issue and it will be solved ASAP.
If you want to Practice then visit (https://codedigger.tech) and practice topicwise competitive problems from competitive sites Codeforces , SPOJ , Codechef and UVa.
Mathematics_Algo
calculate_Factor :- To Calculate Factor of any number n, returns set loaded with all factors of n.
gcd_Extended :- To calculate gcd with Extended Euclidean ax+by=gcd(a,b).
isPrime :- To check whether a number is Prime or Not.
modInverse :- To calculate modInverse of any number, (a * modInverse of a)% m = 1.
nCr with Mod :- Returns (nCr)%m.
nCr without Mod :- Return (nCr).
power with Mod :- (n^p)%m.
power without Mod :- (x^y).
pre_calculate_factorial :- To pre calculate factorial and there inverse and loaded in the array.
prime_factor :- Generate prime factors of any number n.
seive :- Return vector with loaded prime numbers. Fill array with smallest prime factor that divides that number. Example:- for a[1] = 0, a[2] or for prime number = 1, for composite a[6] = 2.
sum of GP :- Calculate sum of Geometric Progression of series (1 + r + r^2 +....+ r^(n-2) ) % m.
totient :- Total numbers from 1 to N whose gcd with N is 1.
fibonacciNumber(n) :- Returns the nth Fibonacci Number in constant time.
15)Spiral Search in 2d array (C++ code)
String_Algo
isVowel :- Check whether a character is vowel or not.
Array
1)Spiral search in 2d array
ALGORITHMICALLY RELATED
Similar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
This repository contains basic source codes of some common C programs, algorithms and Data Structures, particularly useful for learning purposes only. Please note that some of the codes committed in this repository are not completely mine ideas, they were actually adopted from the implementations based on leet-code, geeks for geeks and several other programming portal. Aim of "Simple Things" is just for purely learning purpose.
The source codes of all the algorithms studied in the Pegaso "Algorithms and data structures" course will be uploaded to this repository. The algorithms are implemented for educational purposes and collected within this repository for quick consultation. The programming languages used will mainly be C and Python.
This repository contains two distinct C++ projects that demonstrate various programming concepts, including string manipulation, recursion, binary number generation, and cellular automaton simulation. The projects are designed for educational purposes and showcase practical implementations of algorithms and data structures in C++.
What are STL in C++? The C++ STL (Standard Template Library) is a powerful set of C++ template classes to provide general-purpose classes and functions with templates that implement many popular and commonly used algorithms and data structures like vectors, lists, queues, and stacks.