Jontrona of Liakot

Liakot, the king of Cox’s Bazar, is currently in a dire situation. His own younger sister Ayesha is ...

Restore Missing Values

Consider an array of ‘N’ integers which is indexed from ‘1’ to ‘N’. Exactly ‘Q’ queries numbered fro...

Set Union

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

Not As Hard As It Seems

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

Easy Peasy, Lemon Squeezy

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

City of Burgerland

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

Subarray Sum

You are given an array having N integers. You have to select at most K positions in the array and re...

Data Structure

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

Modulo

Let’s get straight into the problem. In ths problem, here will be multiple test cases. In each test ...

Another Query on String

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

Byang and War Tactics

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

Sofdor Ali and Bracket Sequence

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

Distinct Dishting

You are given an array of N integers. Then there will be Q commands of the following type: 1) Change...

Smallest Subarray

You are given an array A of N integers A1, A2, A3, …, AN . If we select two indices (1 ≤ i ≤ j ≤ N) ...

Array Simulation

You are given an array of N elements. Initially all the indices have a value of 0. You have to do fo...

Device ID

A device ID is a distinct number associated with a smartphone or similar handheld device. Every smar...

Primary Key

“Clarity-Lon” is the new awesome e-commerce based startup that went to the top of the chart within f...

Rio and Inversion

One day Rio was returning home from his university and unfortunately lost his phone on the way. He a...

Special Pair

Mr. X is an “array pagla” person. He loves doing different types of things with arrays. Today Mr. X ...

Village Fair 2

There are N houses in a village far away from here. They are numbered from 1 to N. For this problem ...