City of Burgerland

Have you ever heard of The Burgerland City? The city is full of burger shops. You will surely find s...

Easy Prime!

There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...

Matching Brackets

You will be given a sequence of opening and closing brackets of different types ((, ), [, ], {, and ...

Set Union

Given two sets of integers, print the set containing the union of the two input sets. For example, g...

Another Query on String

You are given a string S (of length n) consisting of alphabets only. You need to perform m queries o...

Count the Chaos

Imagine, you have an array of integers of size N. At each index of this array is a unique integer fr...

Find the Good Sequence

Let’s say two numbers are called “good” if their difference is at least 2. Similarly, a sequence is ...

Easy Peasy, Lemon Squeezy

Let’s consider an array A which is initially empty. We’ll perform two types of operation on that arr...

A Super Easy Problem - "Array Query"

Let’s get into the problem directly without much description this time :D . You are given an array A...

Not As Hard As It Seems

Sakib and Shamim are good friends. As Sakib is a little naughty, every night before exam he disturbs...

Police Stations

Recently the government of country S is going to construct some police stations(possibly zero) in so...

Byang and War Tactics

Byang is learning about War Tactics from Raat, a famous martial arts master, who has successfully tr...

Crayons

Five friends A, B, C, D and E has come to a shop to buy crayons for their art project. They need cra...

Hide and Seek

You know how to play hide-and-seek, right? In a group of kids, one of them is selected to be the see...

Sofdor Ali and Bracket Sequence

Sofdor Ali has invented a new game. He asked his assistant Jong Bahadur ( who happens to be a monkey...

Ajob Commute II

Once again we return to Ajobshohor, the capital city and the heart of Ajobdesh. Ajobshohor’s road sy...

Do You Know Tree ?

“Stay at least one metre distance from others.” Corona has affected the World as well as Bangladesh....

Data Structure

The operations that are performed in a data structure can be categorized into two types: query and u...

Rivalry Friends

Ryo and his girlfriend love to think about challenges. One day his girlfriend gave him a challenge t...

Color The Graph

You are given an acyclic, bidirectional graph with N nodes and M edges. The nodes are numbered from ...