in reply to Re^3: A brain twister? (how to make 2 lines->1)
in thread A brain twister? (how to make 2 lines->1)
wikipedia says it is possible with a self-balancing hash tree (brain hurts just thinking about intermixing one of those with a hash tree...) to reduce worst case to O(log n), but its not usually worth the tradeoff in algorithmic complexity -- sorta like me trying to improve on 'map' and 1 hash lookup... ;-)
|
|---|