A.
Jini and the One Jini’s favorite number is one. She always looks for one in any number and if she finds the digit 1 i... |

B.
No More Shortest Path You are given a weighted directed graph with $n$ nodes and $m$ edges. Node $S$ is marked as the sour... |

C.
Maximize Mismatch You are given a permutation $P$ of number $1, \cdots , n$ (I.E. each number occurs exactly once). No... |

D.
Matrix Construction Construct a square matrix $a$ of size $n×n$ satisfying the following conditions, Each row of the ma... |

E.
Dancing Tuples Given an array $A$ of size $n$, find how many tuple $(i, j, k)$ are there such that $1 ≤ i < j < k ≤... |

F.
String Sorting You'll be given a string $s = s_1s_2.....s_n$ of length $n$ consisting of lowercase english letters ... |

G.
Caching Combinatorics Recently Arya the little panda got a permutation of size $A$ as a birthday present from his parents.... |

H.
AND Maximum Spanning Tree You have a weighted undirected complete graph of $N$ nodes numbered from $0$ to $N-1$. The weight of... |

I.
The Answer to Everything What is the answer to the ultimate question of Life, the universe, and everything? It is You will be... |

Practice contests allow you to re-run contests and experience them as close as possible to the original run.

2Sat, Adhoc, ApolloneasTheorem, Backtracking, BFS, Bignum, BinarySearch, BipartiteMatching, Bitmask, BruteForce, ChineseRemainderTheorem, Combinatorics, ConvexHull, CutVertex, DataStructure, DFS, DigitDP, DisjointSets, DivideAndConquer, DP, Eertree, EulerTour, ExpectedValue, FenwickTree, FFT, Flow, Game, GCD, Geometry, Graph, Greedy, Hashing, HeavyLightDecomposition, Implementation, InclusionExclusion, Interactive, KnuthMorrisPratt, LowestCommonAncestor, Math, Matrix, MatrixExponentiation, MergeSortTree, ModularExponentiation, MOSAlgorithm, MST, NTT, NumberTheory, Parsing, PersistentLiChaoTree, PersistentSegmentTree, PollardRho, PriorityQueue, Probability, Queue, RabinMiller, RangeOrderStatistics, Scheduling, SegmentTree, ShortestPath, Simulation, Sorting, SparseTable, SpragueGrundyTheorem, SqrtDecomposition, Stack, String, StronglyConnectedComponents, SuffixStructure, TernarySearch, Tree, Trie, TwoPointer, WaveletTree

Toph uses cookies. By continuing you agree to our Cookie Policy.