Kth largest perfect binary subtree

0
Remix

In a binary tree, find every subtree that is a perfect binary tree and return the size of the kth largest.

AmazonCodingLast asked Jun 2026
No answer yet. Write the first one; the best answer gets endorsed.