approved

• ###### Buccaneer12commented on "Count a Spiral" kata

Incorrect large number calculation was my problem too. But when I found the solution, I was surprised how simple it was.

Approved

• ###### reniscommented on "Codewars style ranking system" kata

i'm still getting that issue...

• ###### Keperozecommented on "Count a Spiral" kata

Anyone came up with a working solution for this? I'm also puzzled as to why the formula works for smaller numbers, but doesn't work for the big ones.
Even when specifying int. I also found that the formula breaks at exactly 16th digit. I.E. the first 16 digits are always correct.
EDIT: I finally have an answer. The thing is, even when I specify int(), python still converts to float when dividing. Naturally, changing all divisions to floor divisions (//) solved the problem.

Approved

• ###### Flurin Brühwilercommented on "Count a Spiral" kata

Sorry, I dont really understand what you are talking about.

Thanks

• ###### akar-0commented on "Count a Spiral" kata

If you solved the kata you can see the other's solution and comment them. On solution's page.

• ###### aanumcommented on "Count a Spiral" kata

Hey, I have tried it for myself and it works. Just trying to know if there could be any improvement in algo :)

• ###### akar-0commented on "Count a Spiral" kata

Please use a spoiler flag next time. The best to do to know if it's correct is to try it out. Why should others do the job for you?

• ###### aanumcommented on "Count a Spiral" kata

This comment is hidden because it contains spoiler information about the solution