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.
Cool ~~
Already raised as an issue.
There are various ways to format floats, the fun is trying to guess what they are using.
@kromatic You don't have to sort anything if you're careful. Look at my solution.
Agreed. In fact you can avoid taking square roots by just making sure that x*x <= n for every x you check. The only issue is that you have to sort the list at the end since appending x and then n/x will not result in a sorted list.
I think you should add some random tests.
Looks like a duplicate:
http://www.codewars.com/kata/5500d54c2ebe0a8e8a0003fd
Got it. Thank you for your feedback.
@piorad that's precisely why I create this kata. GCD is simple but there has been little example here.
Ookay, I'll look into that. Thanks for your feedback.
Python PEP8:
Function names should be lowercase, with words separated by underscores as necessary to improve readability.
mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
For me, a quick search of GCD only shows two Katas:
** This one is about string matching and/or regex
** Though GCD, it adds a few extra steps.
Don't get me wrong; I'd be shocked if there weren't already a boat load of katas with GCD. The search only turns up one that's actually about GCD.
This comment is hidden because it contains spoiler information about the solution
It would be better to ignore any number after sqrt(integer) provided the second factor is captured from the division.
Loading more items...