MCPcopy Create free account

hub / github.com/Jonathan-Uy/CSES-Solutions / functions

Functions957 in github.com/Jonathan-Uy/CSES-Solutions

↓ 1 callersFunctiondfs2
Tree Algorithms/Tree Distances I.cpp:18
↓ 1 callersFunctiondfs2
Graph Algorithms/Flight Routes Check.cpp:17
↓ 1 callersFunctiondfs2
Graph Algorithms/Planets and Kingdoms.cpp:18
↓ 1 callersFunctiondfs2
Graph Algorithms/Giant Pizza.cpp:32
↓ 1 callersFunctiondfs2
Graph Algorithms/Coin Collector.cpp:20
↓ 1 callersFunctiondfs2
Graph Algorithms/Planets Cycles.cpp:21
↓ 1 callersFunctiondfs2
Advanced Techniques/Reachability Queries.cpp:39
↓ 1 callersFunctiondfs3
Graph Algorithms/Coin Collector.cpp:28
↓ 1 callersFunctiondfs3
Advanced Techniques/Reachability Queries.cpp:47
↓ 1 callersFunctiondfsR
Graph Algorithms/High Score.cpp:25
↓ 1 callersFunctiondfs_dominator_tree
Advanced Graph Problems/Critical Cities.cpp:55
↓ 1 callersFunctiondist
Geometry/Minimum Euclidean Distance.cpp:17
↓ 1 callersFunctionerase
Sliding Window Problems/Sliding Window Cost.cpp:40
↓ 1 callersFunctionextend
String Algorithms/Finding Patterns.cpp:14
↓ 1 callersFunctionextend
String Algorithms/Pattern Positions.cpp:14
↓ 1 callersFunctionextend
String Algorithms/Counting Patterns.cpp:14
↓ 1 callersFunctionextend
String Algorithms/Repeating Substring.cpp:15
↓ 1 callersFunctionextend
String Algorithms/Substring Distribution.cpp:17
↓ 1 callersFunctionextend
String Algorithms/Substring Order I.cpp:25
↓ 1 callersFunctionextend
String Algorithms/Distinct Substrings.cpp:23
↓ 1 callersFunctionextend
String Algorithms/Substring Order II.cpp:25
↓ 1 callersFunctionf
Counting Problems/Grid Completion.cpp:36
↓ 1 callersFunctionf
Bitwise Operations/Counting Bits.cpp:9
↓ 1 callersFunctionf
Additional Problems I/Multiplication Table.cpp:8
↓ 1 callersFunctionf
Advanced Techniques/Corner Subgrid Count.cpp:12
↓ 1 callersFunctionfast_pow
Additional Problems I/Counting LCM Arrays.cpp:22
↓ 1 callersFunctionfastpow
Mathematics/Bracket Sequences I.cpp:9
↓ 1 callersFunctionfastpow
Mathematics/Exponentiation.cpp:10
↓ 1 callersFunctionfastpow
Counting Problems/Empty String.cpp:12
↓ 1 callersFunctionfastpow2
Introductory Problems/Bit Strings.cpp:9
↓ 1 callersFunctionfind
Sorting and Searching/Sum of Two Values.cpp:10
↓ 1 callersFunctionfind
Range Queries/Hotel Queries.cpp:36
↓ 1 callersFunctionfind_ab
Returns a and b such that a and b have opposite parity and p := n - a^2 - b^2 is prime
Mathematics/Sum of Four Squares.cpp:36
↓ 1 callersFunctionfind_cd
If prime p is congruent to 1 (mod 4), then there exists integers (c, d) such that c^2 + d^2 = p. Naively find such c and d.
Mathematics/Sum of Four Squares.cpp:55
↓ 1 callersFunctionfind_centroid
Advanced Graph Problems/Creating Offices.cpp:52
↓ 1 callersFunctionfind_size
Advanced Graph Problems/Creating Offices.cpp:41
↓ 1 callersFunctiongcd
Additional Problems I/Water Container Queries.cpp:6
↓ 1 callersFunctiongenerate_primes
Additional Problems I/Square Subsets.cpp:13
↓ 1 callersFunctiongetSize
Tree Algorithms/Fixed Length Paths II.cpp:23
↓ 1 callersFunctiongetSize
Tree Algorithms/Fixed Length Paths I.cpp:12
↓ 1 callersFunctiongetSum
Advanced Techniques/Reversals and Sums.cpp:119
↓ 1 callersFunctiongood
String Algorithms/Required Substring.cpp:23
↓ 1 callersFunctionheapify
Additional Problems II/Reversal Sorting.cpp:84
↓ 1 callersFunctionheapify
Advanced Techniques/Substring Reversals.cpp:83
↓ 1 callersFunctionheapify
Advanced Techniques/Cut and Paste.cpp:72
↓ 1 callersFunctionheapify
Advanced Techniques/Reversals and Sums.cpp:86
↓ 1 callersFunctionhighToLow
Sliding Window Problems/Sliding Window Cost.cpp:26
↓ 1 callersFunctionin_bounds
Introductory Problems/Knight Moves Grid.cpp:15
↓ 1 callersFunctionincrement
Geometry/Area of Rectangles.cpp:30
↓ 1 callersFunctionincrement
Sorting and Searching/Movie Festival II.cpp:32
↓ 1 callersFunctionincrement
Additional Problems I/Stack Weights.cpp:31
↓ 1 callersFunctioninit
Mathematics/Counting Coprime Pairs.cpp:12
↓ 1 callersFunctioninit
Mathematics/Christmas Party.cpp:11
↓ 1 callersFunctioninit
Mathematics/Counting Divisors.cpp:8
↓ 1 callersFunctioninit
Mathematics/Throwing Dice.cpp:9
↓ 1 callersFunctioninit
Mathematics/Grundy's Game.cpp:14
↓ 1 callersFunctioninit
Mathematics/Bracket Sequences II.cpp:27
↓ 1 callersFunctioninit
Mathematics/Binomial Coefficients.cpp:23
↓ 1 callersFunctioninit
Mathematics/Distributing Apples.cpp:23
↓ 1 callersFunctioninit
Mathematics/Creating Strings II.cpp:24
↓ 1 callersFunctioninit
Mathematics/Permutation Order.cpp:9
↓ 1 callersFunctioninit
Advanced Graph Problems/Visiting Cities.cpp:20
↓ 1 callersFunctioninit
Counting Problems/Permutation Inversions.cpp:12
↓ 1 callersFunctioninit
Counting Problems/Grid Completion.cpp:28
↓ 1 callersFunctioninit
Counting Problems/Counting Permutations.cpp:11
↓ 1 callersFunctioninit
Counting Problems/Grid Paths II.cpp:25
↓ 1 callersFunctioninit
Counting Problems/Empty String.cpp:27
↓ 1 callersFunctioninit
Sorting and Searching/Movie Festival II.cpp:23
↓ 1 callersFunctioninit
String Algorithms/Finding Patterns.cpp:43
↓ 1 callersFunctioninit
String Algorithms/Finding Periods.cpp:13
↓ 1 callersFunctioninit
String Algorithms/Pattern Positions.cpp:46
↓ 1 callersFunctioninit
String Algorithms/Counting Patterns.cpp:44
↓ 1 callersFunctioninit
String Algorithms/Repeating Substring.cpp:47
↓ 1 callersFunctioninit
String Algorithms/Substring Distribution.cpp:46
↓ 1 callersFunctioninit
String Algorithms/Substring Order I.cpp:18
↓ 1 callersFunctioninit
String Algorithms/Palindrome Queries.cpp:38
↓ 1 callersFunctioninit
String Algorithms/Distinct Substrings.cpp:16
↓ 1 callersFunctioninit
String Algorithms/Substring Order II.cpp:18
↓ 1 callersFunctioninit
Graph Algorithms/De Bruijn Sequence.cpp:12
↓ 1 callersFunctioninit
Graph Algorithms/Knights Tour.cpp:16
↓ 1 callersFunctioninit
Range Queries/Pizzeria Queries.cpp:14
↓ 1 callersFunctioninit
Range Queries/Missing Coin Sum Queries.cpp:36
↓ 1 callersFunctioninit
Range Queries/Prefix Sum Queries.cpp:17
↓ 1 callersFunctioninit
Range Queries/Increasing Array Queries.cpp:35
↓ 1 callersFunctioninit
Range Queries/Hotel Queries.cpp:13
↓ 1 callersFunctioninit
Range Queries/Distinct Values Queries II.cpp:20
↓ 1 callersFunctioninit
Range Queries/Dynamic Range Minimum Queries.cpp:17
↓ 1 callersFunctioninit
Dynamic Programming/Two Sets II.cpp:12
↓ 1 callersFunctioninit
Additional Problems I/Swap Game.cpp:13
↓ 1 callersFunctioninit
Additional Problems I/Shortest Subsequence.cpp:12
↓ 1 callersFunctioninit
Additional Problems I/Writing Numbers.cpp:8
↓ 1 callersFunctioninit
Additional Problems I/Stack Weights.cpp:22
↓ 1 callersFunctioninit
Additional Problems I/Bit Inversions.cpp:28
↓ 1 callersFunctioninit_choose
Counting Problems/Counting Bishops.cpp:44
↓ 1 callersFunctioninit_choose
Counting Problems/Counting Sequences.cpp:21
↓ 1 callersFunctioninit_choose
Counting Problems/Functional Graph Distribution.cpp:28
↓ 1 callersFunctioninit_parents
Graph Algorithms/Planets Queries II.cpp:25
↓ 1 callersFunctioninit_powers
Counting Problems/Functional Graph Distribution.cpp:22
↓ 1 callersFunctioninit_primes
Mathematics/Sum of Four Squares.cpp:17
↓ 1 callersFunctioninit_primes
Mathematics/Permutation Rounds.cpp:13
← previousnext →301–400 of 957, ranked by callers