Not As Hard As It Seems

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

Matching Brackets

You will be given a sequence of opening and closing brackets of different types ((, ), [, ], {, and ...

Find the Good Sequence

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

Boys in the Assembly

N boys are standing in the assembly. There is a single line only. Boys are denoted by their roll nu...