3 ms·
If ordering is made by color&design, matching drops to O(n log(n)). Again, with ordering, searching drops to O(log n)
by stralep 15y ago
If ordering is made by color&design, matching drops to O(n log(n)).
Again, with ordering, searching drops to O(log n)
- sid0 15y agoHowever, that actually requires ordering socks, which as we all know is O(not gonna happen).