Easy Prime!

There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...

Another Query on String

You are given a string S (of length n) consisting of alphabets only. You need to perform m queries o...

Crayons

Five friends A, B, C, D and E has come to a shop to buy crayons for their art project. They need cra...

Rivalry Friends

Ryo and his girlfriend love to think about challenges. One day his girlfriend gave him a challenge t...

Count the Chaos

Imagine, you have an array of integers of size N. At each index of this array is a unique integer fr...

Distinct Dishting

You are given an array of N integers. Then there will be Q commands of the following type: 1) Chang...

Answer the Queries

Given an array of N elements, indexed from 0 to N-1. Now you are given some queries in the form [L, ...

Funmondi Contest!

There is a contest being held on Funmondi named ‘Funmondy Inter School Programming Contest’. You are...

A Unique Array

An array is called “unique” if it has no consecutive element with same value(A[i] != A[i-1]). Given...

Itachi's Challenge

Sasuke is a 12-year old ninja who is very much interested in learning Ninjutsu (A tactic used by nin...

Taju Kage Bunshin No Jutsu

Naruto Uzumaki is one of the strongest ninja of RUET (Rasengan University of Ebisu and Tobi), posses...

Superman and the Buildings of Dahaka

To end the long-running feud between Superman and Goku fans regarding who’s stronger, Zeron has deci...

Palindrome Query I

You are given a string of length L. You have Q queries. In each query, you will be asked to either u...

No Onion, No Cry

-Onions make us cry, don’t they? They can make us happy too. -How? -Read the statement carefully! ...