PHP 8.5.0 Alpha 4 available for testing

Voting

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

The Note You're Voting On

hugo at fc dot up dot pt
5 years ago
Where the documentation says "moving all the current values forward", while it sounds like the complexity would be O(N), I checked the code at https://github.com/php-ds/ext-ds/blob/master/src/ds/ds_deque.c#L366 and it is in fact O(1) for each element

<< Back to user notes page

To Top