Voting

: min(eight, two)?
(Example: nine)

The Note You're Voting On

elad dot yosifon at gmail dot com
11 years ago
Notice:
the complexity of array_pop() is O(1).
the complexity of array_shift() is O(n).
array_shift() requires a re-index process on the array, so it has to run over all the elements and index them.

<< Back to user notes page

To Top