Closed amichair closed 5 years ago
Here are some refactorings and little optimizations to make the ternary tree code more efficient, shorter, simpler and easier to read. Feel free to pick only the ones you like (some changes may be a matter of preference).
I think all these changes are an improvement in readability.
Here are some refactorings and little optimizations to make the ternary tree code more efficient, shorter, simpler and easier to read. Feel free to pick only the ones you like (some changes may be a matter of preference).