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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yes. Everything works perfectly. Thank you =)
Biggest number for n = 100 is
1425432294246982705017331107505766145041177820n
wich is bigger thanNumber.MAX_SAFE_INTEGER
This comment is hidden because it contains spoiler information about the solution
It produces same pyramids until n = 24 where floating point errors of solution2 start to appear. So i think solution1 is correct.
I think solution1 is more accurate. There is only summation operation in process of building pyramid in kata description. Strange to see something other than integer in output.
This comment is hidden because it contains spoiler information about the solution
For some inputs this solution will return false negative result. For example:
isMerge('xcyc', 'xc', 'yc') -> false
This comment is hidden because it contains spoiler information about the solution