Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I think,
insertting commas every 3 numbers is a method, but not a good one.
format(price, ',d'), or something like that is clever but not a suitable one.
It is the feature of finance respect of every 3 numbers a comma.
format(price, ',d') solves it by chance.
In my opinion, I used the recursion method. If you like it, you can check my code.
Enjoy...
This comment is hidden because it contains spoiler information about the solution