Recursive Function A common example of recursion goes something like this: long long recur(int x){ if (x==0){ return X0... |
Third Dimension Mr. J wants to learn about combinatorics. He started reading a book on combinatorics and came across... |
Counting is Difficult 2 East West University Computer Programming Club (EWUCoPC) is arranging an Intra-University Programmin... |
Pleasant Permutations A sequence of n integers is called a permutation if it contains all integers from 1 to n exactly onc... |
Playing With Your Mind Given a non-negative integers N. You have to find an integer P such that, the following conditions s... |
Recursive World! See following the two recursive functions: C(0) = 0 C(1) = 5 C(K) = C(K-1) + 4 F(0) = 1 F(1) = 2 F(N... |
Circle of Death Abir is a school going boy, who loves math. Also, he loves to play with stones. Recently he invented... |
Arunima City After the big decentralization process, where Dhaka city's population were relocated, a new city cal... |
Trivial Summation The problem statement is so small. Give you four integers r, a, b, d. Find the summation of all numb... |
Counting Subsets Mr. Meseeks has just turned evil and is on his way to destroy the universe. To stop him Rick and Mor... |
Easy Summation Little Arya is growing up fast and now she can count the numbers. The problem with her counting is t... |
Hasinur's Mission! Let me tell you something about Hasinur: He is a religious person. He prays 5 times a day. He loves... |
Arithmetic Sequence (Easy) Arithmetic Sequence is a sequence of numbers where the difference between two consecutive numbers ar... |
Arithmetic Sequence (Hard) Arithmetic Sequence is a sequence of numbers where the difference between two consecutive numbers ar... |
Obligatory IDPC Problem There are n people busy with arranging the upcoming Inter Department Programming Contest (IDPC) 2016... |
Harry Potter and the Vault of Gringotts "There was a break-in of Gringotts Wizarding Bank on 1 May, 1998, during the height of the Second Wi... |
Building Boundaries Maarja wants to buy a rectangular piece of land and then construct three buildings on that land. The... |
Largest Prime A positive integer number n is called a prime number, if it is only divisible by 1 and n itself, whe... |
Count the Odds Sometimes, contestants tend to look for patterns in problem descriptions. They try to figure out the... |
Game of Gnomes The enemy and their massive army is approaching your fortress, and all you have to defend it is a le... |
Gutibaji on Chessboard Let there be a chessboard of size N×M, and only one bishop in a cell (x,y). How many cells can the b... |
Game, Game Everywhere Binary and Ternary are playing a game. In this game, they initially choose an array with N elements.... |
XOR Master Imam has been participating in online programming contests for years. His goal is to become a "Maste... |
Incremental Induction The Nordic Collegiate Pong Championship (NCPC) is an insanely competive tournament where every conte... |
Bad Boy Ekhlas Ekhlas is a bad boy, not the type of bad that you generally admire. When he was little, his primary ... |