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 challenge needs to a) specify upper bound of inputs, or b) account for inaccuracies of some calculations, especially for precision errors which slip in when using
math.sqrt
. Currently, reference solution returns invalid results for large numbers which are not perfect squares, liketest.assert_equals(isWhole(10**20 + 1), False)
This challenge suffers from a couple of issues common for new kata of new authors, like lack of random tests or informative failure messages. Remember that you can use a bunch of available resources to make sure your kata meets current Codewars quality guidelines:
#help-author
and#kata-ideas
channels on Codewars DiscordSome very similar challenges: