The goal of Rosetta Code is to compare the same program in different languages, so I used the same function and variables names of the original one.
Of course it's possible to write a completely different algorithm using meaningful names and comments, perhaps better, but this is not the purpose in this case.
Of course it's possible to write a completely different algorithm using meaningful names and comments, perhaps better, but this is not the purpose in this case.
Comment