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 ...

Birthday Gifts

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

Flow, Greedy Moderate 6/29/85

Biswa and Borhani

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

Moderate 25/43/151

Boom Bot

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

Moderate 6/8/13

Christmas Gifts

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

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...

Moderate 23/27/72

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...

Moderate 14/32/112

Game Show

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

Gifted

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...

Math Very Easy 271/278/342

Shrink the Array

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

DP Moderate 7/19/42

Simple Pyramid

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

Very Hard 28/30/60

Squares Inside Square

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

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...

Toph uses cookies. By continuing you agree to our Cookie Policy.