Maintain the Queue
“Ajob Desh” is a strange country. Anyone who wants to buy train tickets need to go to the railway st...
Making Football Teams
There are N football teams and each team has a positive number of players. You are given Q queries. ...
Mario and Princess Peach
The world of Mario can be imagined as 2D grid of $N$ rows and $M$ columns--containing a total of $N ...
Matching Brackets
You will be given a sequence of opening and closing brackets of different types ((, ), [, ], {, and ...
Maximum Meetings
I am the boss of my company. I have n employees. The office time of my company starts at 1. Every em...
Memes vs. Social Media
In this era of modern technology social media is the most powerful weapon and the viral issue is the...
MEXimum
Let’s get straight to the point. You are given a tree. In the tree, each node u has a number au​ ass...
Modulo
Let's get straight into the problem. In ths problem, here will be multiple test cases. In each test ...
Mr. Hikiko and a Strange Game (Hard)
Mr. Hikiko recently downloaded a strange game on his phone from a store. This game is quite interest...
Mr Max Count Sum
Mr Max , Mr Sum and Mr Count are three neighbours. They have a common enemy, an old man living in th...
MSIS!
Do you know what MSIS is? MSIS is the abbreviation for Maximum Sum Increasing Subsequence. It is a s...
Naughty Subsequence - V2.0
Mahib loves ‘Naughty Subsequence’-s. He will give you an array of characters ara[0,1,...,n-1] that c...
mashfiqur404 DP, DataStructure Very Easy 38/43/96
Nearest Light
We, iuian develop a virtual vertical line with infinite length are numbered starting from zero from ...
Neat Brackets
Given a sequence of opening and closing parentheses ("(" and ")") you will have to determine if it i...
New Year Couple
The new year 2017 is here. To celebrate the 31st night, Mr Rio has thrown a big party at his house. ...
Not As Hard As It Seems
Sakib and Shamim are good friends. As Sakib is a little naughty, every night before exam he disturbs...
Palindrome Query I
You are given a string of length L. You have Q queries. In each query, you will be asked to either u...
Perseus and The New Challenge
The life of princess Andromeda, the daughter of King Cepheus and Queen Cassiopeia of Ados, is in dan...
Phi Numbers in Range!
In number theory, Euler’s phi function, denoted as ϕ(n), is an arithmetic function which counts the ...
Police Stations
Recently the government of country S is going to construct some police stations(possibly zero) in so...
Poltu and Graph
Poltu has got a graph with N nodes and M edges. Every edge has a weight. There can be multiple edges...
Powerful Array
You are given an array A of N integers . Now you have to process Q queries in this array. Each query...
Primary Key
"Clarity-Lon" is the new awesome e-commerce based startup that went to the top of the chart within f...
Productive Employees
Congratulations on becoming the new boss of "Horizontal Company, branch: Sylhet"! But now you have a...
Protik and Hill Climbing
Who doesn't want to save a mother? Like everyone,  Protik was finding a way to earn some money (he h...
Toph uses cookies. By continuing you agree to our Cookie Policy.