3 ms·
Exactly this! If you are learning algorithms, you should be implementing your own trees rather than relying on a library like this that does the work for you.
by foo101 8y ago
Exactly this! If you are learning algorithms, you should be implementing your own trees rather than relying on a library like this that does the work for you.
The real benefit of learning algorithms comes when you put the hard work into it to build the data structures in a bottom up manner. Using someone else's tree generating library eliminates this experience which is a vital experience in the journey of learning algorithms.
- bogomipz 8y agoExcept the use case for this is not meant as a substitution for "hard work." It's a convenience library. This is no different than importing the Python's standard library's queue, dequeue, hash etc for use in studying algorithms that use those data structure after you understand how to implement them by hand.