Awesome solution
Mine is also O(1), and a couple fewer operations, but not this elegant.
Loading collection data...
Awesome solution
Mine is also O(1), and a couple fewer operations, but not this elegant.