# BinarySearch Problems

 Kitorp and His LoveKitorp loves his wife Asiar(who is a problem solver as well) but he loves math more. To get his atte... City of BurgerlandHave you ever heard of The Burgerland City? The city is full of burger shops. You will surely find s... The Story of StringlandThe king of Stringland is employing an elite force of undercover agents to protect the kingdom from ... 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 83/92/183 Be Like HasibHasib, the famous programmer, uses a little game when he teaches Binary Search to his students. He r... Penguins of MadagascarOne day the penguins of Madagascar found a string S... Wait... Wait. Actually the setter of the prob... Moderate 121/192/582 Eet Izz Phet!A long long time ago, I left the country that was my home and with my head full of brains and shoes ... Complex OperationsYou are given an array A of length N. You have to perform two different types of operations. In the ... Moderate 220/314/1k Master PlanGakra Miah is a Wollywood movie lover. He watches movies almost everyday. He has watched so many mov... Hard 33/39/75 Poltu and Interesting NumberPoltu Loves interesting number. So he wants to find this type of number. The definition of an intere... Moderate 18/33/139 Answer the QueriesGiven an array of N elements, indexed from 0 to N−1. Now you are given some queries in the form [L,R... Largest PrimeA positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe... Lucky ShirtMarjokes is a very famous comedy personality in Byteland. He is a poet, a writer, a singer and an ac... M-SequenceA sequence is called M-sequence if after removing zero or more elements from the sequence the GCD of... Spot It!Have you played the game Spot it!? Though there are many ways to play this game, the basic rule is t... The Multiplayer Action GameHave you played the game Agar.io? According to wikipedia, Agar.io is a massively multiplayer action ... Most Difficult Problem EverYou are given a function like below: long long F(int A, int B, int C, long long x) { long long res =... Moderate 75/108/415 An Obvious Interactive ProblemI pick a number. You guess it. You can guess at most 25 times. For every guess you make, I will tell... Very Easy 353/422/1k XOR PartitionNeo has a hidden array A of n integers where 0 ≤ Ai ≤ 109 is satisfied for each i from 1 to n . You ... Moderate 25/31/109 Jenga TowerMaybe you all are familiar with Jenga Game. "Jenga is played with 54 wooden blocks. Each block is th... N CitiesIn a country there are N cities numbered from 1 to N. To Travel along the cities there are total N b... Moderate 5/19/46 BuildingsThere are n buildings in a row. The height of the i-th building is hi​. You have ৳k. It is the amoun... Moderate 186/265/686 Balanced ReliefThanos just finished his relief work. We all know that Thanos loves balanced things. So he finds som... Sofdor Ali and Attack OptimizationTuki and Jha is in the middle of an interplanetary war and their base is under drone attack! They ar... Moderate 2/12/134 Easy Sequence 1Let’s define an easy sequence F. Where $F(1) = 1$ $F(2X) = F(X)^2 + 1$ \$ F(2X+1) = F(X) \times F...