loading...

re: Daily Challenge #24 - Shortest Step VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I was about to submit something like that, so have my applause instead 👏🎉 A little more thinking on the problem can really simplify the solution! ...
 

That was my original version, then I thought writing two functions might confuse people so I changed it into this. It's just for the sake of demonstration and better readability.🤗But you were right, it is a bad habit to extend a native prototype.

code of conduct - report abuse