### Problems by fsshakkhor

#### A New Tree

Bob had N isolated nodes. He decided to connect the nodes by creating new edges and make a tree. So ...

#### A Perfect Binary Tree

A perfect binary tree is a binary tree in which all interior nodes have two children and all leaves ...

Today is Luke's birthday. Mr. Phil Dunphy (Luke's father) has thrown a birthday party for him and de...

#### Biswa and Borhani

Biswa has started Borhani (kind of a soft drink) business recently and made it the new sexy in no ti...

#### Boom Bot

Raze is a new agent in Valorant Inc. Currently, she is training on how to use Boom Bot. The training...

It's Christmas time! It's the time when Santa brings gift for the children. This year Santa has KKK ...

Moderate 10/10/33

#### Dynamic Tree

You are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...

#### Easy Path

There is a rectangular lake with N rows and M columns and you are standing on a stone in the top lef...

#### Fun With Functions

Let's define a function fff: f(x)=ax+bf(x) = ax + bf(x)=ax+b We know, f2(x)=f(f(x))f^2(x) = f(f(x))f...

#### Game Show

Alex is participating in a game show. Mr. Phil is the host of the game. Alex is provided with an arr...

Moderate 2/2/2

Mary is an intellectually gifted 7-year-old girl. On her first day at school, she impressed her math...

#### Is It A Square?

Shikamaru is the most brilliant student of his class. He is very good at Mathematics. Mr. Asuma is t...

#### Isomorphic Graph

You are given two connected graphs G1G_1G1​ and G2G_2G2​. Both of the graphs have NNN vertices and N...

#### Itachi's Challenge

Sasuke is a 12-year old ninja who is very much interested in learning Ninjutsu (A tactic used by nin...

#### Learning New Algorithms Every Day

Shak is a new programmer and he knows nothing about algorithms. He has made a plan and decided to le...

#### Roll the Dice

You have got a 6 sided dice. In a single roll, it may show any integers from 1 to 6. You are going t...

#### Shrink the Array

You have an array of size N which contains positive integers. You can apply the following operation ...

#### Simple Pyramid

You are given a pyramid with a polygonal base. Can you calculate the volume and surface area of the ...

Moderate 28/30/60

#### Squares Inside Square

Hello , Programmers. There is one thing that I don't like about competitive problem solving, which i...

Moderate 104/138/402

#### Static Tree

You are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...

#### Story of Totient Function

Euler's totient function counts the number of positive integers up to a given integer N that are rel...

#### The Hidden Island

It is believed that the hidden island of TreasureLand has many unsolved mysteries and undiscovered t...

#### Wheel Graph

Today we will learn about a special type of graph called Wheel Graph. In the mathematical discipline...

Moderate 106/115/176