Game Show
Alex is participating in a game show. Mr. Phil is the host of the game. Alex is provided with an arr...
Chance of Passing the Quiz
Rocky is starting his online quizzes and he has been provided with some passing criteria. The rule o...
Yet Another Query Problem!
You are given an array $A$ of length $n$ consisting of integers between $1$ and $10^6$. You need to ...
Arko and Special Permutations
Arko is very fond of permutations. He can easily calculate the number of n length permutations. (In ...
Expected Values From Bubble Sort
Bubble sort is a sorting algorithm that can sort an array of numbers in increasing order. In each of...
Meeting Table
Let there be three groups of people waiting to attend a meeting. There are $\textbf N$ people in eac...
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...
Bi-Element Subsequence
You are participating in a game show. In the final round, the host pulls up a large sequence of posi...
Counting Matrices
Given a natural number N and a prime p, let’s define a special set Zp​={0,1,2,…,p−1}. Now count the ...
The Matrix
In the metaphysical world of the Matrix, different people make their chessboards with their own spec...
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...
GCD, Divisor, Count!
I like short statements and you should too so here's the statement without further ado You are give...
Predict The Frequency
Luis was sleeping. He suddenly woke up with three positive integers N, M and X. He told his younger ...
Toph uses cookies. By continuing you agree to our Cookie Policy.