| ▲ | aizk an hour ago | |
It's O(logn) but you haven't accounted for how heavy each item in the array of n is. | ||
| ▲ | mauvehaus 27 minutes ago | parent | next [-] | |
This is true, but it probably isn't a box of books that's beeping. I also feel like ordering the moves by lightest box first is reasonable as a real-world optimization. | ||
| ▲ | tonyarkles 29 minutes ago | parent | prev [-] | |
Lol classic “ignore the constant factor” gotcha when using Big-O. | ||