Defeat in Final Battle

Sifatul Islam is a great fan of Iron man. He is planning to make a suit for iron man. The suit can s...

Ekupai

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

Make It Big!

You are given a number N (10 ≤ N ≤ 2×109). You have to perform exactly two swap operation. You can c...

OCD Returns!

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

Divisible by 3

You will be given a string containing digits. You have to say the number of sub strings whose sum is...

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

Aliens

19 February 2020, Unidentified flying object (UFO) has captured student’s attention on top of the CS...

Counting Murgis

Ever since that wicked thief took away some of her murgis (hens, that is), Meena was ever anxious th...

Mina and Raju

Everyone know about Mina & Raju. They are siblings as well as good friend. The friend-circle of ...

Third Dimension

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

Burger King

Every day, more than 11 million guests visit BURGER KING® restaurants around the world. And they do ...

Distinct Permutations

You are given two binary strings A and B. Recall that binary string is a non-empty sequence of chara...

Shopping is Fun!!

Mr. Hikiko passed his Eid without shopping because of ongoing lockdown. Now, Govt. removed the lockd...

Cutting Bamboos

There are n bamboos in a row. Khan the bamboo cutter is going to cut them all one by one. He can do ...

Polygon Construction (Hard)

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

No GCD

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

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

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