Passwords Alice wants to extract some passwords from a random string. A password can have any number of charac... |

Buildings There are n buildings in a row. The height of the i-th building is hi. You have ৳k. It is the amoun... |

Easy Sequence 1 Let’s define an easy sequence F. Where: F(1)=1 F(2X)=F(X)2+1 F(2X+1)=F(X)×F(X+1)+2 Here X is a posit... |

Cash Change You have an unlimited number of cash notes of the following denominations: 1, 5, 10, 50, 100, 500. G... |

LIDS We all know about LIS (Longest Increasing Sub sequence). The task to find the length of the longest ... |

The Hidden Island It is believed that the hidden island of TreasureLand has many unsolved mysteries and undiscovered t... |

Angels and Demons You are walking at midnight along a road that has N checkpoints numbered from 1 to N from left to ri... |

Zootopia Judy Hopps , a rookie officer joined Zootopia Police Department. She was fond of working sincerely f... |

Interesting Parenthesis Parentheses sequence of length 2n is the sequence containing exactly n opening parentheses «(» and e... |

Game of Tic-Tac-Toe Alice and Bob is a playing a game of tic-tac-toe, to be precise a variant of tic-tac-toe called Nota... |

Harry Potter and the Vault of Gringotts "There was a break-in of Gringotts Wizarding Bank on 1 May, 1998, during the height of the Second Wi... |

Penguins of Madagascar One day the penguins of Madagascar found a string S... Wait... Wait. Actually the setter of the prob... |

Predict The Frequency Luis was sleeping. He suddenly woke up with three positive integers N, M and X. He told his younger ... |

COVID-19 Outbreak COVID-19 outbreak in Atlantis is so bad that the government is forced to lock down the whole country... |

MSIS! Do you know what MSIS is? MSIS is the abbreviation for Maximum Sum Increasing Subsequence. It is a s... |

Ekupai Hacker robot Ekupai is trying to hack a supercomputer. He needs a cheat code X to hack this computer... |

Convert String Into Palindrome A palindrome is a word, number, phrase, or other sequence of characters which reads the same backwar... |

Gaaner Koli The protagonists of this problem are two great programmers of a certain institution Omanush and Ordi... |

Alice in Candyland Alice came up with a new game. In this game called "Candy Quest", there is a NxN size 2D grid. In ea... |

OCD Returns! This problem author has OCD (obsessive–compulsive disorder). One day his teacher gave him an array o... |

The Perfect Collection Given an array A of N integers, if we choose any K of these integers and calculate their bitwise XOR... |

Subarray Sum You are given an array having N integers. You have to select at most K positions in the array and re... |

Maximum Sum Little Jimmy loves to play with numbers. One day he was playing with a number sequence. In his game,... |

Sticking Pins You are sticking pins on a 2D board at N given coordinates. However, since you are not very good at ... |

Very Dirty String Strings are difficult, most of the contest programmers say this and try to avoid string algorithms. ... |

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.