Pergunta de entrevista da empresa Cadence Design Systems

Find the nth smallest element in binary tree.