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

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

Tree QueriesYou are given a tree of n vertices. Each vertex contains an integer. Vertex 1 is the root of the tre...

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

Subset of SequencesYou will be given a set of sequences. Each sequence is a list of numbers. Two sequences are Ksimil...

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

Hamming DistanceHamming distance between two binary strings of equal length is the number of mismatches between ever...

City of AtlantisHave you ever heard of The Atlantis City? It’s a Greek mythological city. Its existence doesn’t matt...

Dengue Affected AreasDengue, the talk of the town of Dhaka this year. So many people suffered from dengue fever and a num...

Mad Engineer AksirCan you imagine? Mad Engineer Aksir finally got the job. His job is to set up toggle switch for a s...

Dynamic TreeYou are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...

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...

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

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...

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 ...

Maintain the Queue“Ajob Desh” is a strange country. Anyone who wants to buy train tickets need to go to the railway st...

Perseus and The New ChallengeThe life of princess Andromeda, the daughter of King Cepheus and Queen Cassiopeia of Ados, is in dan...

Mario and Princess PeachThe world of Mario can be imagined as 2D grid of N rows and M columns–containing a total of N × M ce...

Final Days of GoldfingerWe see agent Bond once again being called in time of a great need. The vile criminal Auric Goldfinge...

Smart Query HandlerBit operators perform bitwise operations between two binary numbers. Wikipedia says, binary operat...

Earthquake!Most houses are not as safe as they could be. Earthquake engineering is an interdisciplinary branch ...

Expandable ListViewMinas is working on his new language. He want to add a feature call expandable listview. Here he exp...

New Year CoupleThe new year 2017 is here. To celebrate the 31st night, Mr Rio has thrown a big party at his house. ...

Another UpdateQuery ProblemYou will be given an array A of length N and you will have to perform Q operations on that array. Th...

Cut the RopeFahim is a rope seller. He has a special tool for cutting ropes. But recently this tool is behaving ...

Battle of EndorAfter myriad battles and death of million rebel soldiers, it is high time to destroy the imperial ar...
