Maruo and the Sequence
Maruo has a sequece A = {a1,a2,......an}. Let us define a function func(A,l,r) which is the minimum...
APM
You will be requested to add a new package with a dependent package name list. If there is no confli...
A Game of Two Coins
There are N players (numbered from 1 to N) sitting around a round table. Player 2 is sitting at the ...
Moderate 16/20/61
Dynamic Tree
You are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...
Aaagmnr
Given two arrays of words (strings) determine how many of the words in the first array are anagrams ...
Moderate 7/7/12
Earn Your Cupcake
A delicious NxN grid is given to you. All the lattice points of this grid contain a cupcake each exc...
Rational Monkey
There lived a wise monkey in the forest of Amazon. One day he started searching the jungle for banan...
Battle of FurfuriNagar
The country FurfuriNagar is famous for the cartoon series Motu Patlu. The peace and furfuriness of t...
Candy Boxes
Mehdi won a million dollars lottery, and not knowing what to do with such big amounts of money, he b...
zobayer Moderate 4/5/12
Water in a Tree
There is a tree consist of N nodes and N−1 edges. The ith node contains Si​ liters of water with a t...
DVD Rental Store
You are the owner of a DVD rental store. There are N customers who want to rent a DVD of ‘The Matrix...
zobayer Moderate 4/4/4
Fight Club Restored
The things you own, end up owning you. It’s only after we’ve lost everything that we’re free to do a...
Sorting Algorithm
Given an array A with N elements that is sorted in non-decreasing order. You will be given Q queries...
Nirjhor Moderate 4/4/11
Vowels Bad, Consonants Good
You will be given a line of text. The text will contain space separated words. Identify all the word...
Regexp Moderate 7/7/11
Nitu and Her Lucky String
Recently, Nitu has developed a keen interest in solving string-related problems. She possesses a spe...
The Great Sherlock Holmes
We all know how great of a detective Sherlock Holmes is. However, suddenly he's stuck in a rather od...
Killing Floor
$N (1 \leq N \leq 10^{18})$ robots have decided to take part on a battle royale. Every robot has a u...
Yet Another Hello World
The greatest company, Pied Piper, is developing encryption systems. The company has already built Md...
Secret Sorting Order
You will be given a list of words which were sorted based on some unknown ordering among the letters...
Thanos VS Power Stone
Who doesn't know about thanos the genius mad titan, who waste his life acquiring the infinity stones...
Battle of Endor
After myriad battles and death of million rebel soldiers, it is high time to destroy the imperial ar...
Another String Query Problem
This time I'm going to introduce you to a new land, called String Land. In String Land there are N ...
Maximum Distance
You know it’s hard seeing your favorite person being interested in another one instead of you. At th...
A Weird Dragon
We all know about Daenerys Targaryen and her three dragons. And we also know that one of those drago...
Moderate 14/19/52
Lucky Shirt
Marjokes is a very famous comedy personality in Byteland. He is a poet, a writer, a singer and an ac...
Toph uses cookies. By continuing you agree to our Cookie Policy.