Manual notification.
This comment is hidden because it contains spoiler information about the solution
Without the conversion the lookup would be O(n) instead of O(1).
O(n)
O(1)
Hi, don't post code without the spoiler tag. It only passes the basic test. The complete tests include some edge cases you have to consider.
Loading collection data...
Manual notification.
This comment is hidden because it contains spoiler information about the solution
Without the conversion the lookup would be
O(n)
instead ofO(1)
.This comment is hidden because it contains spoiler information about the solution
Hi, don't post code without the spoiler tag. It only passes the basic test. The complete tests include some edge cases you have to consider.