« Data structure challenge: finding the rightmost empty slot » Data structure challenge: application

Data structure challenge: solutions

Posted on April 6, 2020
Tagged , , , , , , , , , , , ,

In my previous post I challenged you to find a way to keep track of a sequence of slots in such a way that we can quickly (in \(O(\lg n)\) or better) either mark any empty slot as full, or find the rightmost empty slot prior to a given index. When I posted it, I had two solutions in mind; thanks to all the excellent comments I now know of many more!