# BinarySearch Problems

#### An Obvious Interactive Problem

I pick a number. You guess it. You can guess at most 25 times. For every guess you make, I will tell...

Moderate 328/384/1k

#### Ice-Cream of Montu Mia Again!

Montu Mia is a student of “Omok School”. He likes to eat an ice-cream every day. But he also likes t...

#### Balanced Relief

Thanos just finished his relief work. We all know that Thanos loves balanced things. So he finds som...

#### Sofdor Ali and Attack Optimization

Tuki and Jha is in the middle of an interplanetary war and their base is under drone attack! They ar...

#### Be Like Hasib

Hasib, the famous programmer, uses a little game when he teaches Binary Search to his students. He r...

#### Easy Sequence 1

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

Moderate 257/302/491

#### The Multiplayer Action Game

Have you played the game Agar.io? According to wikipedia, Agar.io is a massively multiplayer action ...

#### Largest Prime

A positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe...

Moderate 269/316/858

#### Kitorp and His Love

Kitorp loves his wife Asiar(who is a problem solver as well) but he loves math more. To get his atte...

#### Spot It!

Have you played the game Spot it!? Though there are many ways to play this game, the basic rule is t...

#### Master Plan

Gakra Miah is a Wollywood movie lover. He watches movies almost everyday. He has watched so many mov...

Moderate 30/36/71

#### Lucky Shirt

Marjokes is a very famous comedy personality in Byteland. He is a poet, a writer, a singer and an ac...

#### Buildings

There are n buildings in a row. The height of the i'th building is hi. You have ৳k. It is the amount...

Moderate 174/245/623

#### Mind Flayer Has Attacked Again!

Mind flayer, the shadow monster has attacked the town of Hawkins again. This time, the mind flayer h...

Moderate 25/34/79

#### I Scream, You Scream!

Meem loves ice cream cones. So much so that she created an ice cream stand to share the joy of ice c...

Moderate 73/82/154

#### Complex Operations

You are given an array A of length N. You have to perform two different types of operations. In the ...

#### The Story of Stringland

The king of Stringland is employing an elite force of undercover agents to protect the kingdom from ...

#### Poltu and Interesting Number

Poltu Loves interesting number. So he wants to find this type of number. The definition of an intere...

#### Most Difficult Problem Ever

You are given a function like below: long long F(int A, int B, int C, long long x) { long long res =...

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

#### XOR Partition

Neo has a hidden array A of n integers where 0 ≤ Ai ≤ 109 is satisfied for each i from 1 to n . You ...

Moderate 24/30/108

#### M-Sequence

A sequence is called M-sequence if after removing zero or more elements from the sequence the GCD of...

#### Jenga Tower

Maybe you all are familiar with Jenga Game. &quot;Jenga is played with 54 wooden blocks. Each block ...

#### N Cities

In a country there are NNN cities numbered from 111 to NNN. To Travel along the cities there are tot...

#### Watercolor

Bob is the owner of a shop named &quot;Color Maker&quot;. He has 256 types of watercolor in his shop...