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

Biswa and Borhani Biswa has started Borhani (kind of a soft drink) business recently and made it the new sexy in no ti...
Moderate
27/45/153 |

Boom Bot Raze is a new agent in Valorant Inc. Currently, she is training on how to use Boom Bot. The training...
Moderate
8/10/15 |

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

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
24/28/73 |

Fun With Functions Let's define a function f: f(x)=ax+b We know, f2(x)=f(f(x)) and f3(x)=f(f(f(x))). We can write a gen...
Moderate
17/35/115 |

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 $G_1$ and $G_2$. Both of the graphs have $N$ vertices and $N$ num... |

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

Linear Programming? Given the value a, b and N. Find the number of non-negative integer pairs (x1,x2) which satisfies ...
Moderate
6/14/36 |

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 ...
Hard
31/34/64 |

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.