Is_balanced(binary tree)

how will I take input in this format?
10 true 20 true 40 false false true 50 false false true 30 true 60 false false true 73 false false

@sktg99
This is basically a preorder input where whether a child is present or not is indicated by true or false. Use this input function to take the input - https://ide.codingblocks.com/s/154778