A binary search tree in Kotlin pt. 2: Generic node
Posted by Simon Larsén in Programming
Welcome to part 2 of my series on the idiomatic Kotlin binary tree! In this part, we're gonna have a look at how to make the node representation from part 1 capable of carrying any kind of data (i.e. generic).
- Representing a node
- Generic node (this part …