I know there was a specification how trees used for OJ input data are represented as an array, but I can't seem to find it anywhere. Is there a link? If I have a tree
5
/ \
4 7
/ /
3 6
would an array representation be {5, 4, 7, 3, #, 6, #}?
Is there perhaps an already made java parser for that? :)