O(1) constant space
easy 14 minO(1) space means an algorithm uses a fixed amount of extra memory, a few variables, no matter how large the input is.
Practice
3 problems with hidden tests. Python runs in your browser.
Loading problem…
Loading problem…
Loading problem…