9 ms·
Probably not a lot, but the idea of using 2k and 2k + 1 as indices for children is used in a lot of basic data structures taught in CS courses, e. g. for binary
by sereja 5y ago
Probably not a lot, but the idea of using 2k and 2k + 1 as indices for children is used in a lot of basic data structures taught in CS courses, e. g. for binary heaps.
- whatshisface 5y agoHuh, now that you say it I think I do remember that being used for heaps.