Currently I'm representing a binary tree in the following manner:
[None,2,[None,3,None]]
The tree above is rooted at 2. None means that the branch is empty.
I'd rather implement this in a list. Are there better ways to do this (without resorting to creating classes) ?