I used RB tree for this. The implementation is based on the code on wikipedia about RB trees.
1.4 KiB
1.4 KiB
I used RB tree for this. The implementation is based on the code on wikipedia about RB trees.