# DataStructure Problems

 Set UnionGiven two sets of integers, print the set containing the union of the two input sets. For example, g... Very Easy 1k/1k/3k Neat BracketsGiven a sequence of opening and closing parentheses ("(" and ")") you will have to determine if it i... Very Easy 1k/1k/4k Not As Hard As It SeemsSakib and Shamim are good friends. As Sakib is a little naughty, every night before exam he disturbs... Moderate 70/115/445 ModuloLet's get straight into the problem. In ths problem, here will be multiple test cases. In each test ... Matching BracketsYou will be given a sequence of opening and closing brackets of different types ((, ), [, ], {, and ... Very Easy 870/965/2k Earthquake!Most houses are not as safe as they could be. Earthquake engineering is an interdisciplinary branch ... Moderate 13/17/23 Cut the RopeFahim is a rope seller. He has a special tool for cutting ropes. But recently this tool is behaving ... Final Days of GoldfingerWe see agent Bond once again being called in time of a great need. The vile criminal Auric Goldfinge... Very Hard 38/41/119 Primary Key"Clarity-Lon" is the new awesome e-commerce based startup that went to the top of the chart within f... Smart Query HandlerBit operators perform bit-wise operations between two binary numbers. Wikipedia says, binary operati... Moderate 54/74/215 New Year CoupleThe new year 2017 is here. To celebrate the 31st night, Mr Rio has thrown a big party at his house. ... Moderate 22/32/170 Mario and Princess PeachThe world of Mario can be imagined as 2D grid of \$N\$ rows and \$M\$ columns--containing a total of \$N ... DistinctnessA substring of string S is another string S' which occurs in string S. For example: S = aaba and one... Distinct DishtingYou are given an array of N integers. Then there will be Q commands of the following type: Change ... Smallest SubarrayYou are given an array A of N integers A1, A2, A3, ..., AN . If we select two indices (1 ≤ i ≤ j ≤ N... Moderate 26/35/100 Special PairMr. X is an “array pagla” person. He loves doing different types of things with arrays. Today Mr. X ... Another Update-Query ProblemYou will be given an array A of length N and you will have to perform Q operations on that array. Th... Expandable ListViewMinas is working on his new language. He want to add a feature call expandable listview. Here he exp... Moderate 10/11/20 Rio and InversionOne day Rio was returning home from his university and unfortunately lost his phone on the way. He a... Moderate 43/50/218 Subarray SumYou are given an array having N integers. You have to select at most K positions in the array and re... Moderate 134/190/840 Sofdor Ali and Bracket SequenceSofdor Ali has invented a new game. He asked his assistant Jong Bahadur ( who happens to be a monkey... Battle of EndorAfter myriad battles and death of million rebel soldiers, it is high time to destroy the imperial ar... Moderate 19/26/192 Array SimulationYou are given an array of N elements. Initially all the indices have a value of 0. You have to do fo... Moderate 7/15/73 Maintain the Queue“Ajob Desh” is a strange country. Anyone who wants to buy train tickets need to go to the railway st... Moderate 48/85/241 Subset of SequencesYou will be given a set of sequences. Each sequence is a list of numbers. Two sequences are K-simila...