|
|
|
|
|
by laszlokorte
2086 days ago
|
|
Actually I would assume the time for removing each rod while collecting the result is quadratic because when the number of rods is high enough you can no longer see the highest one at a glance but have to scan through all possible rod positions for spotting the one that sticks out. |
|
Of course, your hand is then a magical device that can do a reduction in constant time.