Pergunta de entrevista da empresa Gambit Research

binary trees. find the number of visible nodes of a binary tree T given as a string.