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

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

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

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

Easy Peasy, Lemon SqueezyLet’s consider an array A which is initially empty. We’ll perform two types of operation on that arr...

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

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

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

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

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

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

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

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

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

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

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

Primary Key“ClarityLon” is the new awesome ecommerce based startup that went to the top of the chart within f...

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

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

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