I'm trying to make a search tree that can store duplicate keys and have different values for said keys.
Basically, I have hashcode in the form of a bit string. The value is that bit string, and the key is the number of 1's that appear in the bit string.
For example, I could have two bit strings:
bitstring1 = "00001111";
bitstring2 = "11110000";
So they have identical keys:
key1 = 4;
key2 = 4;
Is it possible to implement this into a search tree?