Techiio-author
Started by Peter DanielsSep 22, 2021

Open
How to store Objects with a key value in Binary Trees?

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I created a generic Binary Node Class, as well as a generic Binary Tree class that uses said Node Class. Now I would like to use these classes to store objects with multiple values that are sorted by one of those attributes.

I tried around a lot and I'm lost. I can't seem to find a solution anywhere. Where to store data that is not the key value?

Example object: "Car" with values "brand name" and "construction year", cars are to be sorted by construction year

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance