XOR-AND Coupling
You are given an array A of N positive integers A1​,A2​,………..,AN−1​,AN​ which are some powers of 2. ...
Big Tang Theory
Shell Don (Shelly in short) is a theoretical physicist who is claimed to be highly intelligent with ...
Count Bridges
You are given an unweighted, undirected, and connected graph consisting of N nodes and M edges. You ...
Regular Brackets
This problem is matching brackets, but with regular expression. Given a set of parenthesis, if they ...
Regexp Moderate 4/7/11
Guilty Rahman
OC Rahman is notorious for accepting bribes. Influential people in his area now seek to bribe him to...
Eulers Peculiar Dream
After discovering the famous totient function ϕ(x) Euler got so fond of it that he applied it to eve...
Anina’s Birthday Gift
Anina is a girl who is very much interested in mathematics. She likes to solve Geometry and Counting...
Hello Regexp
Write a regular expression that will match texts like “Hello {X}” and only output “{X}” (w/o quotes)...
Regexp Moderate 16/18/22
Match the Range
Well, I will not waste your time and go straight to the problem. You are given an array A of numbers...
Corona Virus Attacked Kittuk
A large number of people are being infected with the Corona virus in Kittuk country. In that situati...
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...
Mr. Foring and n-dimensions
The great Grasshopper “Foring” recently learned from the story “The ant and a grasshopper” that he s...
Zoba the Misleader
Zoba has 3 strings, named S1​, S2​ and S3​. He wanted to make a tough problem for Mihaf with these s...
Itachi's Challenge
Sasuke is a 12-year old ninja who is very much interested in learning Ninjutsu (A tactic used by nin...
Play the Lottery
The statement of this problem is going to be short and sweet because the setter was busy with life a...
Video Game
Shefin is playing a game. In this game there are N buildings numbered from 1 to N. Each building has...
Change in Array
You will be given an array of length N. Then there will be Q queries. Each query will contain four i...
Mr. Savior
“Stop War, Save Life” - a life-changing motto proposed by the “Peace Want Society”. The head of this...
Hizitizi's Array Cutting
Hizitizi is a new character in our story. In every episode, he gets a task to do from his imaginary ...
Enemy Charlie
Alice and Bob have stopped playing games. They became friends again. They both agreed that M is thei...
Red Green BabuLand
King of Babuland is going through a tough time because of a migrating group of bandits which came to...
Budget Travel
You and your friends are always excited about travelling new destinations, specially if they are che...
Distinct Permutations
You are given two binary strings A and B. Recall that binary string is a non-empty sequence of chara...
Pretty Diabolical
TRAOMBINNAA is going to be Billy Butcher's base for the next season of the boys. He is going to buil...
Find the Prime Number
You are given a bidirectional graph with N vertices and M edges. All edges are painted into either r...
Toph uses cookies. By continuing you agree to our Cookie Policy.