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

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

Birthday GiftsToday is Luke's birthday. Mr. Phil Dunphy (Luke's father) has thrown a birthday party for hi...

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

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

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

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

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

GiftedMary is an intellectually gifted 7yearold 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 GraphYou are given two connected graphs G_1 and G_2. Both of the graphs have N vertices and N number of e...

Itachi's ChallengeSasuke is a 12year old ninja who is very much interested in learning Ninjutsu (A tactic used by nin...

Roll the DiceYou 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 ArrayYou have an array of size N which contains positive integers. You can apply the following operation ...

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

Squares Inside SquareHello , Programmers. There is one thing that I don't like about competitive problem solving, whi...

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

Story of Totient FunctionEuler's totient function counts the number of positive integers up to a given integer N that are...

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

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