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

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?

1 Like

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.