3 ms·Forgot to mention… he wanted an O(n) solution!!!by elteto 3y agoForgot to mention… he wanted an O(n) solution!!!