let's start Code

E-maxx training part - 04

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...
Share:

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...
Share:

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...
Share:

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...
Share:

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...
Share:

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...
Share:

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....
Share:

FACT0 - Integer Factorization (15 digits)

FACT0 - Integer Factorization (15 digits) āϟāĻĒāĻŋāĻ•āσ āĻĒā§āϰāĻžāχāĻŽ āĻĢā§āϝāĻžāĻ•ā§āϟāϰ āĻšāĻŋāĻ¨ā§āϟāσ āϏāĻŋāĻ­ āĻĻāĻŋā§Ÿā§‡ āĻ•āϰāϞ⧇ āϟāĻžāχāĻŽ āϞāĻŋāĻŽāĻŋāϟ, āύāϰāĻŽāĻžāϞāĻŋ āĻ•āϰāϤ⧇ āĻšāĻŦ⧇āĨ¤ āĻĒā§āϰāĻĨāĻŽā§‡ x = ⧍ āĻĻāĻŋā§Ÿā§‡ āϝāϤāĻŦāĻžāϰ āϝāĻžā§Ÿ āĻ­āĻžāĻ— āϤāĻžāϰāĻĒāϰ ā§Š āĻĻāĻŋā§Ÿā§‡ , āĻāϰāĻĒāϰ ā§Ģ  āĻĻāĻŋā§Ÿā§‡... āϝāĻ–āύ x*x >N āĻšā§Ÿā§‡ āϝāĻžāĻŦ⧇ āϤāĻ–āύ āϞ⧁āĻĒāϟāĻž āĻŦā§āϰ⧇āĻ• āĻšāĻŦ⧇āĨ¤  āĻāϰāĻĒāϰ āĻļ⧇āώ⧇ āϏāĻ‚āĻ–ā§āϝāĻžāϟāĻŋ ā§§ āĻāϰ āĻšā§‡ā§Ÿā§‡ āĻŦ⧜ āĻĨāĻžāĻ•āϞ⧇ āĻ“āχāϟāĻž āĻāĻ•āϟāĻž  āĻĒā§āϰāĻžāχāĻŽ āύāĻžāĻŽā§āĻŦāĻžāϰ āĻšāĻŦ⧇, āφāϰ āĻĒā§āϰāϤāĻŋāĻŦāĻžāϰ āĻ­āĻžāĻ— āĻ•āϰāĻžāϰ āϏāĻŽā§Ÿ āĻāĻ•āϟāĻž āĻ•āĻžāωāĻ¨ā§āϟ āϰāĻžāĻ–āĻŦā§‹...
Share:

āĻĒā§āϰāĻžāχāĻŽ āĻœā§‡āύāĻžāϰ⧇āĻļāύ āϏāĻŋāĻ­ āĻ“ āĻĒā§āϰāĻžāχāĻŽ āĻĢā§āϝāĻžāĻ•ā§āϟāϰāĻžāχāĻœā§‡āĻļāύ

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...
Share:

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...
Share:

About

let's start CODE

Popular Posts