Surprisingly for me, golfing made the code more efficient! Takes about 3ms, sometimes 2.5, which is a big improvement from the 4ms for my non-golfed version.
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.
Golfed it! 63 bytes.
Surprisingly for me, golfing made the code more efficient! Takes about 3ms, sometimes 2.5, which is a big improvement from the 4ms for my non-golfed version.