기출 문제 / 현대 Round 5, Problem 2

Task Processing

The organizational structure of a certain department is in the form of a complete binary tree. That is, the department head is the root, and each employee, including the department head, has left and right subordinate employees. Employees without subordinates are called leaf employees.