Wizard Duel
Wizard Duel is approaching soon in Hogwarts and the students of the Dueling Club are absolutely thri...
Meera and Solo Chocolates
Meera bought candies from the store. She is now going to distribute those among her N friends. She m...
Diagonal Traversal
You are given an n×m grid. You can go from point (x1​,y1​) to any point (x2​,y2​) of grid if and onl...
Random Graphs
This problem is very easy. There's a graph of $N$ nodes. Each edge $u-v$ ($u >= v ; u = v$ is possib...
Secret Meeting
The world is terrified by Pandas! After a miraculous chemical explosion, they became smarter; and ev...
Composite Facts
Let's define two functions F and S: F(n) = 1 + n! S(n,m) = Sum of first m non-prime integers which ...
Beauty of AP
Solving problems is fun in competitive programming, right? So let’s solve a fun task today too :P. 1...
Solve This Giveaway Problem First
This problem is straightforward and easy. You will be given two integers N, P and a list L of positi...
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 ...
Interplanetary Mission
The National Space Center(NSC) is planning an interplanetary mission in a new galaxy far far away fr...
Finding Lines
Annabel and Richard like to invent new games and play against each other. One day Annabel has a new ...
Spot It!
Have you played the game Spot it!? Though there are many ways to play this game, the basic rule is t...
Complex Tashreef
Tashreef finally received the Zuinness Journal of Galactic records recognition for being the most co...
Expected Oddness
Alita found a string of n characters where each character of the string is either '0' or '1'. The Od...
Game of Gnomes
The enemy and their massive army is approaching your fortress, and all you have to defend it is a le...
Jhamela, Once Again
You are given n positive integers as an array. Also, you are given an integer k. Now, try to find a ...
Game, Game Everywhere
Binary and Ternary are playing a game. In this game, they initially choose an array with N elements....
Mr. Ant and His Problem
Mr. Ant has 3 boxes and the infinite number of marbles. Now he wants to know the number of ways he c...
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...
String Play
Milo has a string S of length L. Tutu picks a random prefix and Mota picks a random suffix of S. Now...
Perfect Points
Perfect lines are the lines y=mx+c such that m and c are positive integers. Perfect points are the p...
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...
Who Gets the Money!?
Who doesn’t get happy after getting money in the pockets of clothes before washing them? During this...
The Cipher
In an ancient civilization, shrouded in the mists of time, there existed a group of mathematicians k...
Toph uses cookies. By continuing you agree to our Cookie Policy.