Rivalry Friends

Ryo and his girlfriend love to think about challenges. One day h...

Easy Prime!

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

Taju Kage Bunshin No Jutsu

Naruto Uzumaki is one of the strongest ninja of RUET (Rasengan U...

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

A Unique Array

An array is called “unique” if it has no consecutive element wit...

Another Query on String

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

Count the Chaos

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

Crayons

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

Superman and the Buildings of Dahaka

To end the long-running feud between Superman and Goku fans rega...

Palindrome Query I

You are given a string of length L. You have Q queries. In each ...