Ekupai

Hacker robot Ekupai is trying to hack a supercomputer. He needs a cheat code X to hack this computer...

Sgt. Laugh

That’s it. Sgt. Laugh has had enough. He is determined to end the evil military reign of General Cry...

Video Game Pro

Shefin is playing a video game. In this game, there will be N buildings in a row. i^{th} building ha...

Unique Relief

Thanos has now figured out how to visit all the houses in the flood-affected area. However, now he h...

Array Partition

Today Leena learnt about subarrays and partitions. Given an array A, a subarray of this array is a p...

LIDS

We all know about LIS ( Longest Increasing Sub sequence). The task to find the length of the longest...

A Journey Towards One

Given N. You can perform 3 types of operations: Increase N by 1. Decrease N by 1. Divide N by 2 (On...

Easy Sequence 1

Let’s define an easy sequence F. Where F(1) = 1 F(2X) = F(X)^2 + 1 F(2X+1) = F(X) \times F(X+1) + 2 ...

Interesting Pile Game

Turja and Akash are playing an interesting game. Initially a pile of N stones is given to them. Each...

Paranoid Trading

You have been newly appointed as the accountant of Michael Corleone - the famous mafia boss. Your ta...

The Perfect Collection

Given an array A of N integers, if we choose any K of these integers and calculate their bitwise XOR...

Dominoes Forever

Once when I was little, my father took me to a tobacco shop! It is surprising, but true. He asked th...

Convert String Into Palindrome

A palindrome is a word, number, phrase, or other sequence of characters which reads the same backwar...

MSIS!

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

Polygon Construction (Hard)

Meera in going to picnic with her friends. They are going to have lots of fun. They will be doing va...

Third Dimension

Mr. J wants to learn about combinatorics. He started reading a book on combinatorics and came across...

No GCD

You are given N integers. Each integer is square free (i.e. it has no divisor which is a square numb...

OCD Returns!

This problem author has OCD (obsessive–compulsive disorder). One day his teacher gave him an array o...

Easy Sequence 2

Let’s define a easy sequence F. Where F(1) = 1 F(2X) = F(X)^2 + 1 F(2X+1) = F(X) \times F(X+1) + 2 H...

The Game of Rocks

Alice and Bob have come up with a new game. Bob gives Alice a NxM grid that contains N rows and M co...