screening > live coding
Asked to write function to cut all the nodes with one child.
Task was in notepad. Spent most of the time trying to re-create tree with slashes and spaces, because interviewer refused to clarify the task.
Interview questions [1]
Question 1
Asked to write function to cut all the nodes with one child.