In a dreamland, there is a road, which have some lanes. If there is n lanes in that road, they are marked by 1 to n. i-th lane is wider than (i-1)-th lane, so cars of i-th lane contain one more wheel from the previous lane. Every i-th lane can afford cars which have lowest number of wheels and nu....Read More

**28.89**% | Time:

**1**s | Memory:

**512**MB

Do you like chocolates? Maybe, or not, but my younger sister likes chocolates so much and she wants to buy more chocolates. Every day she comes to me with a list of chocolates of N types from 1 to N, where the price is given of every type of chocolates. Finally, she askes me what amount of m....Read More

**16.67**% | Time:

**2**s | Memory:

**512**MB

Roza is a college girl. She has many friends. She loves Gossip, Hangout, Travelling etc. with her friends. She also loves bite Chocolate Ice-cream. Sometimes it helps him to reduce her frustration.Today she is very upset, sits alone beside window in her home. Because her friends have gone a tour at C....Read More

**32.50**% | Time:

**1**s | Memory:

**512**MB

Robin and his friends were making a visit from Dhaka to Coxbazar. Robin’s one characteristics is that he wants to keep records of his expenditures of every step of his life. Now he wants to keep the expenditure of this tour. But as he is not so good in keeping the transactions, so he requ....Read More

**28.26**% | Time:

**1**s | Memory:

**512**MB

There are two interesting things in physics, they are: Distance: Distance is the total length covered by a moving object irrespective of the direction of motion. Here only magnitude is needed. Displacement: Displacement is distance measured in a straight line and in a specified direction. So both magnitude and direction are important. For example: A car travels 5 km to east and makes a U-turn back to tra....Read More

**63.16**% | Time:

**1**s | Memory:

**512**MB

You are given N sorted values and Q queries. Each query consists of three values, l, r, and k. Each query states that you have to find the k’th value from the given input starting from index l to index r. Note that the index of N sorted value starts from index 1.....Read More

**66.67**% | Time:

**2**s | Memory:

**512**MB

The Square and the Triangle are always fighting with each other. Square says he’s best, and calls Triangleugly and upsets him. One day, Square decided not to fight with Triangle anymore. He called Triangle and said, “Let’s work together and not fight anymore. Let’s find my area (Look....Read More

**47.62**% | Time:

**1**s | Memory:

**512**MB

Given a number N, the task is to check whether the number is Pagla Number or Not. A number is called Pagla Number if and only if it's square and the number itself ends with same digit.....Read More

**23.08**% | Time:

**1**s | Memory:

**512**MB

Given a binary array that means each element of that array is either 0 or 1. Your task is to sort the array using minimum swaps. You are allowed to swap only adjacent elements.....Read More

**33.33**% | Time:

**1**s | Memory:

**512**MB

Mr. MMMH is a shopkeeper. He sells n types of chocolates, from 1 to n (1 <= n <= 107). She has K amount of money. She wants to buy the maximum number of types of chocolates.The cost of chocolates are,The cost of type 1 = The summation of divisors of 1 = 1.The cost of type 2 = The summatio....Read More

**43.75**% | Time:

**5**s | Memory:

**512**MB