Generation GapThere are n people standing in a queue. The age of the ith person is ai. The more the age gap betwe...

BuildingsThere are n buildings in a row. The height of the i’th building is hi. You have ৳k. It is the amoun...

EkupaiHacker robot Ekupai is trying to hack a supercomputer. He needs a cheat code X to hack this computer...

Lexicographical Smallest StringThere is a string s of length n containing lowercase letters and an integer k. Among the letters tho...

Diagonal SumGiven an N*N size matrix, you have to rearrange the elements of the matrix in such a way that the d...

String Is Not That EasyLet’s consider a string S which is obtained by concatenating the nonnegative integers from 0 to 102...

Train HijackYou and your friend Daneliya Tuleshova are planning to hijack a train. Your friend will go inside a...

Flow on TreeMr. Kaboom has recently learned about maximum flow. Now his friend Mr. Taboom gave him this problem....

PasswordsAlice wants to extract some passwords from a random string. A password can have any number of charac...

Road Minister TechboyTechboy is appointed as the minister of roads and highway in his country BetterNotNameIt. Now he ... 
Subset ANDYou are given an array A of n integers and an integer k. You need to find if there is any nonempty ...

Birthday GiftsToday is Luke’s birthday. Mr. Phil Dunphy (Luke’s father) has thrown a birthday party for him and de...

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

Flyover in TwinlandRio has become the president of Twinland. Now he wants to develop his country to fulfill his promise...

Darth Vader and 3PO on a Tree!Did you watch Star Wars yet? No? You should in your free time. Now back to Darth Vader and 3PO. Dar... 
Game of StringsRedoan is very fond of strings. He wants to go on a spree of solving string problems. His own teamma...

Problem Setter CrisisCompetitive Programming is very popular in Leading University. There are many great achievements of ...

Hardest Problem EverProf.Dr.DP is very famous professor. He is expert (actually legendary grandmaster) in Dynamic Progra...

Find NSUPSGiven a string $s$, find the number of subsequence in $s$ which forms the word “NSUPS”. A subsequenc...

Déjà VuThor, the Thunder God is fighting a horde of monsters in a cave. The cave is so narrow that it c...

Fantastic FoodAs we all know that Alice and Bob just landed in Fantastic World and are going to stay for the next ...

Permutations and DivisorsLet P be a permutation of length n where each value from 1 to n occurs exactly once. A subsequence o...

RememberRemainderZarin is a sadist. She loves to give problems to her close people. Today she gives you an array cons...

Disturbing StudentsN students were gathered in front of CSEmpur gate. They wanted to take a tour of the famous CSEmpur ...

Inversions and GoodbyeIt’s time to say goodbye to CSEmpur, at least for today. And so you wanted to give the citizens of C...
