Created
July 21, 2019 13:40
-
-
Save bezany/87830c90377be820cc39e9f6627d076e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n=process.argv[2];[...n].map(_=>{console.log(n),n=[...n].reduce((a,b,d)=>(c=+b+ +n[d-1],(1<d?a:"")+((0|c/10)+c%10)))}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment