I'm proud of this solution. What about you?

I'm proud of this solution. What about you?
0.0 0

#1

Usually the algorithm challenges take me around 10+ lines. However I finished this one in less than a minute and modified only one line. Suffice it to say I earned my bragging rights. What are some of the solutions you are most proud of?


#2

Nice! Well done. Any solution that works is a valid one, but it’s nice to get some elegance in there as well from time to time.