Count the Chaos

Imagine, you have an array of integers of size N. At each index ...

Easy Prime!

There are N numbers in an array. You will have Q queries. In eac...

Distinct Dishting

You are given an array of N integers. Then there will be Q comma...

Itachi's Challenge

Sasuke is a 12-year old ninja who is very much interested in lea...

Another Query on String

You are given a string S (of length n) consisting of alphabets o...

Crayons

Five friends A, B, C, D and E has come to a shop to buy crayons ...