Complex Operations

You are given an array A of length N. You have to perform two di...

An Obvious Interactive Problem

I pick a number. You guess it. You can guess at most 25 times. ...

Buildings

There are n buildings in a row. The height of the i’th building ...

Be Like Hasib

Hasib, the famous programmer, uses a little game when he teaches...

I Scream, You Scream!

Meem loves ice cream cones. So much so that she created an ice c...

Balanced Relief

Thanos just finished his relief work. We all know that Thanos l...

Sofdor Ali and Attack Optimization

Tuki and Jha is in the middle of an interplanetary war and their...

The Multiplayer Action Game

Have you played the game Agar.io? According to wikipedia, Agar....

Spot It!

Have you played the game Spot it!? Though there are many ways to...

Poltu and Interesting Number

Poltu Loves interesting number. So he wants to find this type of...

Hardest Problem Ever

The description is simple. You are given a function like below:...

Related Category
Ternary Search
  • 4 Problems
Tutorial
Binary Search

Finding a number in a sorted array using binary search.