4 ms·O(n). Faster than 75% of accepted solutions. :)by olooney 7y agoO(n). Faster than 75% of accepted solutions. :)