โ† OYO questions

Candies distribution and check if binary tree is a subtree

Filed under OYO

Solve two classic problems: (1) Find the minimum candies required to distribute to children based on ratings, and (2) Check whether a binary tree T is a subtree of another binary tree S.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.