# Math Problems

#### Count the Odds

Sometimes, contestants tend to look for patterns in problem desc...

#### Red and Green

Suppose, there is an array of N integers. Each index of the arra...

#### Boltu vs Balti

Boltu and Balti are two friends. Boltu is a great programmer whe...

#### Sofdor Ali and Histogram

The Great Sofdor Ali is now interested in competitive programmin...

#### Power and Mod

Exponentiation is a mathematical operation, written as b n , inv...

#### Compute the Combination

Let P = C(N,0) - C(N,1) + C(N,2) - C(N,3) + … + C(N,N); where C(...

#### An Arithmetic Problem

A sequence is an arithmetic sequence if every two successive num...

#### Bloodlust

Mr. X is a dangerous criminal. He likes to draw some geometric r...

#### Around the Square

You are given a square and there are four circles which are over...

#### Circles in a Rectangle

Two circles are placed inside a rectangle. They do not intersect...

#### Event Timing

Bob is making a new application for Android phones. Front-end of...

#### XOR and the Array

Given an array of N integers, you need to find out the minimum n...

#### GPA Calculator

Shibli is a very good student. He is very regular and attentive ...

#### Be Like Hasib

Hasib, the famous programmer, uses a little game when he teaches...

#### Zacob The Batsman

It’s known that Zacob is a reliable batsman of LU CSE Cricket Te...

Today is your best friend SJ’s birthday. You want to buy a birth...

#### Prisoners

Let me tell you a story of a dangerous prison. There were N pris...

#### Byang and The Grid Game

Byang has invented a game he wants to play with his soulmate Bya...

#### Sofdor Ali and the Puzzle of Weights

Sofdor Ali is one of the most famous scientists of Bangladesh. H...

#### Recursive Function

A common example of recursion goes something like this: long lo...

Given a non-negative integers N. You have to find an integer P s...

#### Recursive World!

See following the two recursive functions: C(0) = 0 C(1) = 5 C(...

#### Convex Hull Generator

You have to generate a convex polygon which has N points each ...

#### Arunima City

After the big decentralization process, where Dhaka city’s popul...

#### Counting Is Difficult

East West University Computer Programming Club is organizing a p...

#### Arya and OR

Little Arya loves to play with numbers. She likes to play in dif...

#### Hexagonal Packing

Bees are very hard working insects and they are also very good a...

#### Alice and the Chessboard

It’s Sunday afternoon, and Alice is in her room trying to figure...

#### Old Magic!

You: Guess an integer number, but don’t tell me. Your friend: Ok...

#### Divide Candy Again

There are N boxes with candies numbered from 1 to N. The number ...

#### Secret Meeting

The world is terrified by Pandas! After a miraculous chemical ex...

#### Koch Snowflakes

The Koch snowflake can be constructed by starting with an equila...

Search