Tree MEX Problem (By Moscow Workshop ICPC)
TREE MEX
Can anybody tell me how to solve this problem?
AMA: TheOneYouWant
Atcoder ABC #351 Short Solution Discussion