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

Count the Chaos

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

Tree Queries

You are given a tree of n vertices. Each vertex contains an integer. Vertex 1 is the root of the tre...

Crayons

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

Ajob Commute II

Once again we return to Ajobshohor, the capital city and the heart of Ajobdesh. Ajobshohor’s road sy...

Rivalry Friends

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

MSIS!

Do you know what MSIS is? MSIS is the abbreviation for Maximum Sum Increasing Subsequence. It is a s...

Straightforward

No gossip. In this problem I will just say what to do. Initially, you will be given a bracket sequen...

Bored??

“Avoid touching your face, particularly your eyes, nose or mouth to prevent the virus from entering ...