Video Game
Shefin is playing a game. In this game there are N buildings numbered from 1 to N. Each building has...
Maximum Sum
Little Jimmy loves to play with numbers. One day he was playing with a number sequence. In his game,...
Train Hijack
You and your friend Daneliya Tuleshova are planning to hijack a train. Your friend will go inside a...
Help Chokro
Pias and Chokro are good friends. Pias's birthday is coming soon. So, Chokro wants to gift Pias an a...
Divisible by 3
You will be given a string containing digits. You have to say the number of sub strings whose sum is...
Find NSUPS
Given a string s, find the number of subsequence in s which forms the word "NSUPS". A subsequence is...
Third Dimension
Mr. J wants to learn about combinatorics. He started reading a book on combinatorics and came across...
I Hate Combinatorics!
Rick and Morty are being hunted by the galactic government. They ran away to the cell dimension. The...
Is This a Give-Away?
Once there lived an ancient mage named Farabi. He could always give perfect weather forecast. He nev...
Subarray Sum
You are given an array having N integers. You have to select at most K positions in the array and re...
Easy Sequence 2
Let’s define a easy sequence F. Where $ F(1) = 1 $ $ F(2X) = F(X)^2 + 1 $ $ F(2X+1) = F(X) \times F(...
COVID-19 Outbreak
COVID-19 outbreak in Atlantis is so bad that the government is forced to lock down the whole country...
Penguins of Madagascar
One day the penguins of Madagascar found a string S... Wait... Wait. Actually the setter of the prob...
Make It Big!
You are given a number N (10 ≤ N ≤ 2×109). You have to perform exactly two swap operation. You can c...
Convert String Into Palindrome
A palindrome is a word, number, phrase, or other sequence of characters which reads the same backwar...
A Journey Towards One
Given N. You can perform 3 types of operations: Increase N by 1. Decrease N by 1. Divide N by 2, av...
Counting Murgis
Ever since that wicked thief took away some of her murgis (hens, that is), Meena was ever anxious th...
Happiness
If you have a Tk 100 in your wallet, what would you do? You might have couple of ways to spend that ...
LIDS
We all know about LIS (Longest Increasing Sub sequence). The task to find the length of the longest ...
Burger King
Every day, more than 11 million guests visit BURGER KING® restaurants around the world. And they do ...
Easy Sequence 1
Let’s define an easy sequence F. Where: F(1)=1 F(2X)=F(X)2+1 F(2X+1)=F(X)×F(X+1)+2 Here X is a posit...
Toph uses cookies. By continuing you agree to our Cookie Policy.