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.
Golang version seems to be fine for me. You are not supposed to calculate the actual value of the factorial. Inputs go up to
n=1000000000
, and even with bigint, calculating it will take forever.I am going to close this as not a kata issue, because my Golang solution which uses exactly the same approach I used in other languages passed.
Also,
strings.Split(s, " ") is equvalent to string.Fields(s)
I'd say the proper way is:
Seen this on Go blog.
Cheers :)
This comment is hidden because it contains spoiler information about the solution