views:

217

answers:

1

Which is the best data structure that can be used to implement Binary Tree in Python?

+2  A: 

I would go for 2 custom classes Tree and Node like in this small example.

Recipe 286239: Binary ordered tree (Python)

bassfriend