## 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 him and de... |

## Biswa and BorhaniBiswa has started Borhani (kind of a soft drink) business recently and made it the new sexy in no ti...
Moderate
25/43/151 |

## Boom BotRaze is a new agent in Valorant Inc. Currently, she is training on how to use Boom Bot. The training...
Moderate
6/8/13 |

## Christmas GiftsIt's Christmas time! It's the time when Santa brings gift for the children. This year Santa has $K$ ... |

## 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...
Moderate
23/27/72 |

## Fun With FunctionsLet's define a function $f$: $f(x) = ax + b$ We know, $f^2(x) = f(f(x))$ and $f^3(x) = f(f(f(x)))$. ...
Moderate
14/32/112 |

## 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 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 GraphYou are given two connected graphs $G_1$ and $G_2$. Both of the graphs have $N$ vertices and $N$ num... |

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

## Learning New Algorithms Every DayShak is a new programmer and he knows nothing about algorithms. He has made a plan and decided to le... |

## 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 ...
Very Hard
29/31/61 |

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

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

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

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