Neat Brackets
Given a sequence of opening and closing parentheses ("(" and ")") you will have to determine if it i...
Set Union
Given two sets of integers, print the set containing the union of the two input sets. For example, g...
Matching Brackets
You will be given a sequence of opening and closing brackets of different types ((, ), [, ], {, and ...
Easy Prime!
There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...
Find the Good Sequence
Let's say two numbers are called "good" if their difference is at least 2. Similarly, a sequence is ...
Rivalry Friends
Ryo and his girlfriend love to think about challenges. One day his girlfriend gave him a challenge t...
Count the Chaos
Imagine, you have an array of integers of size N. At each index of this array is a unique integer fr...
Another Query on String
You are given a string S (of length n) consisting of alphabets only. You need to perform m queries o...
Hablu's Team
This year Hablu wants to participate in ICPC. He studies in “Habagoba University” along with $n$ oth...
Mad Engineer Aksir
Can you imagine? Mad Engineer Aksir finally got the job. His job is to set up toggle switch for a se...
Exists or Not Exists
You will be given some numbers. Then there will contain some queries. In every query there will be g...
ICPC World Final
ICPC (International Collegiate Programming Contest) World final is one of the most prestigious conte...
Subarray Sum
You are given an array having N integers. You have to select at most K positions in the array and re...
Modulo
Let's get straight into the problem. In ths problem, here will be multiple test cases. In each test ...
United State of Koanhali
Koanhali is a strange country. The govt. of Koanhali maintain the marriages of this country. If you ...
Cut the Rope
Fahim is a rope seller. He has a special tool for cutting ropes. But recently this tool is behaving ...
MEXimum
Let’s get straight to the point. You are given a tree. In the tree, each node u has a number au​ ass...
Data Structure
The operations that are performed in a data structure can be categorized into two types: query and u...
Tree Queries
You are given a tree of n vertices. Each vertex contains an integer. Vertex 1 is the root of the tre...
City of Burgerland
Have you ever heard of The Burgerland City? The city is full of burger shops. You will surely find s...
MSIS!
Do you know what MSIS is? MSIS is the abbreviation for Maximum Sum Increasing Subsequence. It is a s...
Counting Friends
Johnny uses a social network called Supernova. Unlike the other social networks, Supernova does not ...
Distinct Dishting
You are given an array of N integers. Then there will be Q commands of the following type: Change ...
Easy Peasy, Lemon Squeezy
Let's consider an array A which is initially empty. We'll perform two types of operation on that arr...
Not As Hard As It Seems
Sakib and Shamim are good friends. As Sakib is a little naughty, every night before exam he disturbs...
Toph uses cookies. By continuing you agree to our Cookie Policy.