Incremental Induction
The Nordic Collegiate Pong Championship (NCPC) is an insanely competive tournament where every conte...
Secret Meeting
The world is terrified by Pandas! After a miraculous chemical explosion, they became smarter; and ev...
Pudding and Coins
Pudding is playing a game that has n levels. There are a total of n(n+1)/2 coins spread out among th...
Joker's GCD Test
Joker has a sequence P of n integers. Each two elements in the sequence are pairwise distinct. He de...
K-th DuoPalindrome
Alice likes playing with Palindromes (strings that read the same backward as forward, such as 'madam...
Color The Graph
You are given an acyclic, bidirectional graph with N nodes and M edges. The nodes are numbered from ...
Bad Neighbors 2
As some of you already know, Nocu City has a history of having bad neighbors. These bad ones, take a...
Game Show
Alex is participating in a game show. Mr. Phil is the host of the game. Alex is provided with an arr...
Pleasant Permutations
A sequence of n integers is called a permutation if it contains all integers from 1 to n exactly onc...
Hange and Her Gear
Hange has developed a special gear to attack the Cart Titan. The gear is a round, disc-like object. ...
How Many Paths?
You are at the top left corner [position (1,1)] of a R×C grid. Your destination is bottom right corn...
XOR Master
Imam has been participating in online programming contests for years. His goal is to become a "Maste...
Counting Subsets
Mr. Meseeks has just turned evil and is on his way to destroy the universe. To stop him Rick and Mor...
Game of Gnomes
The enemy and their massive army is approaching your fortress, and all you have to defend it is a le...
Third Dimension
Mr. J wants to learn about combinatorics. He started reading a book on combinatorics and came across...
Bad Neighbors
In the strange neighborhood of Nocu, a lot of people lives pretty happily, or so they think. Like mo...
Yet Another Query Problem!
You are given an array $A$ of length $n$ consisting of integers between $1$ and $10^6$. You need to ...
Expected Values From Bubble Sort
Bubble sort is a sorting algorithm that can sort an array of numbers in increasing order. In each of...
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...
Interplanetary Mission
The National Space Center(NSC) is planning an interplanetary mission in a new galaxy far far away fr...
String Play
Milo has a string S of length L. Tutu picks a random prefix and Mota picks a random suffix of S. Now...
Building Boundaries
Maarja wants to buy a rectangular piece of land and then construct three buildings on that land. The...
The Matrix
In the metaphysical world of the Matrix, different people make their chessboards with their own spec...
Walk on the Grid
There is a grid of size $R\times C$ where $R = $ Number of rows and $C = $ Number of columns. You sh...
Easy Peasy Subset Sum
Little Oishee loves to watch TV. But her mother, who is a math teacher, doesn't like this at all. Sh...
Toph uses cookies. By continuing you agree to our Cookie Policy.