Penguins of Madagascar
One day the penguins of Madagascar found a string S... Wait... Wait. Actually the setter of the prob...
Cash Change
You have an unlimited number of cash notes of the following denominations: 1, 5, 10, 50, 100, 500. G...
LIDS
We all know about LIS (Longest Increasing Sub sequence). The task to find the length of the longest ...
Lexicographical Smallest String
There is a string $s$ of length $n$ containing lowercase letters and an integer $k$. Among the lette...
Subset AND
You are given an array A of n integers and an integer k. You need to find if there is any non-empty ...
Passwords
Alice wants to extract some passwords from a random string. A password can have any number of charac...
Make More Money
You, the great businessman of TEUB, arrived at ESC land which consists of N cities numbered from 1 t...
BAPG
Russell loves solving math problems and also playing online games. Recently, he has started playing ...
Lucky Stone Game
Alice and Bob are playing a stone game. They consider 4 and 7 as lucky numbers and they like to make...
Buildings
There are n buildings in a row. The height of the i-th building is hi​. You have ৳k. It is the amoun...
Diagonal Sum
Given an N×N size matrix, you have to re-arrange the elements of the matrix in such a way that the d...
Permutations and Divisors
Let P be a permutation of length n where each value from 1 to n occurs exactly once. A subsequence o...
Make It Big!
You are given a number N (10 ≤ N ≤ 2×109). You have to perform exactly two swap operation. You can c...
Paranoid Trading
You have been newly appointed as the accountant of Michael Corleone - the famous mafia boss. Your ta...
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...
Gaaner Koli
The protagonists of this problem are two great programmers of a certain institution Omanush and Ordi...
Alice in Candyland
Alice came up with a new game. In this game called "Candy Quest", there is a NxN size 2D grid. In ea...
OCD Returns!
This problem author has OCD (obsessive–compulsive disorder). One day his teacher gave him an array o...
The Perfect Collection
Given an array A of N integers, if we choose any K of these integers and calculate their bitwise XOR...
Subarray Sum
You are given an array having N integers. You have to select at most K positions in the array and re...
Maximum Sum
Little Jimmy loves to play with numbers. One day he was playing with a number sequence. In his game,...
Sticking Pins
You are sticking pins on a 2D board at N given coordinates. However, since you are not very good at ...
Very Dirty String
Strings are difficult, most of the contest programmers say this and try to avoid string algorithms. ...
Orchid Division
Quido has a square orchard full of various fruit and nut trees. The trees are planted in regular row...
Third Dimension
Mr. J wants to learn about combinatorics. He started reading a book on combinatorics and came across...
Toph uses cookies. By continuing you agree to our Cookie Policy.