Tareq, SOD & Prime
Tareq loves Prime Number. A prime Number is a number that is only divisible by 1 and the number itse...
Simple Queries
You are given an array x of distinct integers  x1​,x2​,x3​…xn​(0≤xi​≤109;1≤i≤n) of length n. Now you...
Rotated Square
You are given N 2D points, and some query 2D points. For each query point you need to find the area ...
faiyaz26 Moderate 2/6/61
Lighthouse 2
Safwan is the new governor of the country Homeland. Homeland is formed with a set of N islands where...
AI Empire
This is the year 3202. 300 years ago, AI got so much smart that AI took control over its creators. N...
Dabbu the Entrepreneur
Dabbu is back from Cox’s Bazar with an obsession with Coconut. Nowadays he is so obsessed with cocon...
Convincing Customers
As a good friend of Muntasir, Evan was finding a way to help him bear the cost of his mother’s treat...
Seven Kingdoms!
The dragon queen just conquered the Seven Kingdoms. Initially there are N cities in "Seven Kingdoms"...
Cat Everywhere
Cats everywhere! I came back home after being far away for a long time. Two of my sisters are very f...
Rik, the Space Traveler
Mr. Rik is a famous space traveler. He lives in a galaxy named Victa. There are many planets in this...
Compute the Combination
Let P = C(N,0) - C(N,1) + C(N,2) - C(N,3) + ... + C(N,N); where C(n,r) is "n choose r". You are give...
Simple Function
Mr. X is course teacher of Numerical Analysis. Gentleman X has announced that if anyone can solve th...
Justified Text
Given a long string of text, you will have to print it following these rules: Replace all consecuti...
Mighty Kuddus
In a vast network of interconnected servers, an advanced Artificial Intelligence named Mighty Kuddus...
Number Crafting
Game is one type of competency, and when it befalls by any number its really astonish. Rifat is very...
Paranoid Trading
You have been newly appointed as the accountant of Michael Corleone - the famous mafia boss. Your ta...
Pathetic Interview II
You all know about the story of Pathetic Interview-I. Today, I am sharing a story of my close friend...
Tree Queries
You are given a tree of n vertices. Each vertex contains an integer. Vertex 1 is the root of the tre...
Meena's Fibonaccina
Meena likes Fibonaccina numbers a lot. She gave Raju an assignment on Fibonaccina numbers. So Raju a...
Moderate 22/47/161
Milad's Lost Tree
Milad likes trees so much. He has a rooted tree with $n$ vertices each of which has some non-negativ...
Alone in the Multiverse
Instead of restoring Peter's previous life, Doctor Strange's botched spell attracted enemies and oth...
Shortest Path, Yet Again?
Mr O is teaching Algorithms 101 to his students. The class just finished learning BFS and now he wan...
Counter Attack
Alice and Bob played Nim for a long time and now they are pissed off after exploring the property of...
Moderate 5/23/58
Not Bad Array
Mr. Hikiko will react with a “Not Bad”, if you can solve this problem. An array is a Not Bad array i...
This Is Business
“Why brother why…?” “This is Business …” You have started a cupcake factory where two types of cupca...
Toph uses cookies. By continuing you agree to our Cookie Policy.