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