How create a binary tree for problem 136

Back to General discussions forum

kayoukou     2018-05-23 20:17:56

Hello, I've solved the problem 136, but whithout using a binary tree for as it's ask.
I can't figure out how to create a binary tree for this case, which criteria can I take for comparaison ? I was thinking to do it by using the length of the binary number, but it's not enough o make a proper comparaison.

Please login and solve 5 problems to be able to post at forum