Minimum stack / Minimum queue
Implementation
Sparse Table
RMQSQ - Range Minimum Query SOLUTION
THRBL - Catapult that ball
Matchsticks
Sereja and D
D. CGCDSSQ
D. R2D2 and Droid Army
B. Maximum of Maximums of Minimums
TNVFC1M - Miraculous
DCP-19: Multiplication Interval
D. Animals and Puzzle
E. Trains...
Sparse Table
Note: Sparse Table is a data structure, that allows answering range queries. It can answer most range queries in span class="MathJax" data-mathml="O(log⁡n)" id="MathJax-Element-1-Frame" role="presentation" style="position: relative;" tabindex="0">O(logn), but its true power is answering range minimum queries (or equivalent range maximum...
Github Link
RezwanArefin01
Shafaet
ACM-ICPC-Algorithms
ADJA/algos
USACO
Ashishgup1/Competitive-Coding
abeaumont/competitive-programming
keon/algorithms (But, codes in python)
GitHub Repositories With Competitive Programming Libraries
&nbs...
Chinese Remainder Theorem
Resources:
Chinese Remainder Theorem
Chinese Remainder Theorem ( E-Maxx)
GeeksForGeeks
forthright48 - Coprime Moduli part1
forthnight48- Non Coprime Moduli part 2
Codeforces article
Problems:
Chinese Remainder Theorem (non-relatively prime moduli)
Cheese and Random Toppings SOLUTION
1319...
Longest Common Subsequence ( LCS )
Resources:
āĻĄāĻžāĻāύāĻžāĻŽāĻŋāĻ āĻĒā§āϰā§āĻžāĻā§āϰāĻžāĻŽāĻŋāĻ: āϞāĻāĻā§āϏā§āĻ āĻāĻŽāύ āϏāĻžāĻŦāϏāĻŋāĻā§āĻžā§ā§āύā§āϏ
GeekGeeks
Practice Dynamic Programming! Educational DP Contest: F - LCS
Tushar Roy Video
DP: Find elements of LCS ( Hackerrank Problem )
Code:
This file contains hidden or bidirectional...
Number of single cycle components in an undirected graph (CF-977E)
E. Cyclic Components
resource
āĻšāĻŋāύā§āĻāĻ āĻĒā§āϰāϤāĻŋāĻāĻŋ āĻāĻŽā§āĻĒā§āύā§āύā§āĻ āĻ āĻā§āĻ āĻāϰāĻŦā§ āϤāĻžāĻĻā§āϰ āĻĒā§āϰāϤā§āϝā§āĻāĻāĻŋ āύā§āĻĄā§āϰ āĻĄāĻŋāĻā§āϰāĻŋ āĻĻā§āĻ āĻāĻŋāύāĻž, āϝāĻĻāĻŋ āĻĻā§āĻ āĻšā§ āϤāĻžāĻāϞ⧠āϏā§āĻāĻž āĻāĻāĻāĻž āϏāĻŋāĻā§āĻā§āϞ āϏāĻžāĻāĻā§āϞ āĻāĻŽā§āĻĒā§āύā§āύā§āĻāĨ¤
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than...
E-maxx training part - 03
Modular Multiplicative Inverse
UVa 11904 - One Unit Machine SOLUTION
Longest Increasing Subsequence Arrays SOLUTION
C. Beautiful Numbers
F. The Sum of the k-th Powers
A. Festival Organization
D. Nephren Runs a Cinema
Chinese Remainder Theorem
Number of Sequences
E....
FACT0 - Integer Factorization (15 digits)
FACT0 - Integer Factorization (15 digits)
āĻāĻĒāĻŋāĻāĻ āĻĒā§āϰāĻžāĻāĻŽ āĻĢā§āϝāĻžāĻā§āĻāϰ
āĻšāĻŋāύā§āĻāĻ āϏāĻŋāĻ āĻĻāĻŋā§ā§ āĻāϰāϞ⧠āĻāĻžāĻāĻŽ āϞāĻŋāĻŽāĻŋāĻ, āύāϰāĻŽāĻžāϞāĻŋ āĻāϰāϤ⧠āĻšāĻŦā§āĨ¤ āĻĒā§āϰāĻĨāĻŽā§ x = ⧍ āĻĻāĻŋā§ā§ āϝāϤāĻŦāĻžāϰ āϝāĻžā§ āĻāĻžāĻ āϤāĻžāϰāĻĒāϰ ā§Š āĻĻāĻŋā§ā§ , āĻāϰāĻĒāϰ ā§Ģ āĻĻāĻŋā§ā§...
āϝāĻāύ x*x >N āĻšā§ā§ āϝāĻžāĻŦā§ āϤāĻāύ āϞā§āĻĒāĻāĻž āĻŦā§āϰā§āĻ āĻšāĻŦā§āĨ¤
āĻāϰāĻĒāϰ āĻļā§āώ⧠āϏāĻāĻā§āϝāĻžāĻāĻŋ ā§§ āĻāϰ āĻā§ā§ā§ āĻŦā§ āĻĨāĻžāĻāϞ⧠āĻāĻāĻāĻž āĻāĻāĻāĻž āĻĒā§āϰāĻžāĻāĻŽ āύāĻžāĻŽā§āĻŦāĻžāϰ āĻšāĻŦā§, āĻāϰ āĻĒā§āϰāϤāĻŋāĻŦāĻžāϰ āĻāĻžāĻ āĻāϰāĻžāϰ āϏāĻŽā§ āĻāĻāĻāĻž āĻāĻžāĻāύā§āĻ āϰāĻžāĻāĻŦā§...
āĻĒā§āϰāĻžāĻāĻŽ āĻā§āύāĻžāϰā§āĻļāύ āϏāĻŋāĻ āĻ āĻĒā§āϰāĻžāĻāĻŽ āĻĢā§āϝāĻžāĻā§āĻāϰāĻžāĻāĻā§āĻļāύ
Resources:
āĻĒā§āϰāĻžāĻāĻŽ āĻā§āύāĻžāϰā§āĻļāύ āϏāĻŋāĻ āĻ āĻĒā§āϰāĻžāĻāĻŽ āĻĢā§āϝāĻžāĻā§āĻāϰāĻžāĻāĻā§āĻļāύ
Integer factorization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals...
1112 - Curious Robin Hood
1112 - Curious Robin Hood
Topic: BIT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about...