Not linear... but I think (without any actual proof 🤷♂️) (I'm a fraud 🤦♂️) that my solution does it in logarithmic time: dev.to/maxart2501/comment/b9m6
Edit: scratch that, no way it's not quadratic 😂 But then again, it's faster than the extensive check.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Not linear... but I think (without any actual proof 🤷♂️) (I'm a fraud 🤦♂️) that my solution does it in logarithmic time: dev.to/maxart2501/comment/b9m6
Edit: scratch that, no way it's not quadratic 😂 But then again, it's faster than the extensive check.