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.
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.
Agreed. Recursive fibonacci will freeze on n=100. I had to rack my brain to implement different approach which was a great exercise.
I dunno how you want your significant number be. Is it limited to 2 digits? 3 digits? And how come
1.0km != 1km
?This comment is hidden because it contains spoiler information about the solution
Yes, that's the idea.
In this exercise, you are required to understand
exception
and how to raise an error whenever an input is outside definition.if you have to many wires, you should raise an exception (anything is fine, but it will be better if you raise
ValueError
)__init__
takes 2 arguments. One isself
which is mandatory, and second,wires
which is defaulted to no wire pairings when not defined. I'd suggest google forPython default parameter
to understand more.This Kata is GENIUS!
Suggestion:
I'm interested if anyone made a kata to parse the output of
dragon
into (x,y) coordinateswhich can be plotted using plot library (e.g.
matplotlib.pyplot
)(if not, I've already made mine, just to see if anyone made better implementation, and the
fractal shape is very beautiful.)
This comment is hidden because it contains spoiler information about the solution
don't really need math.ceil. If you divide integer by integer, it will be rounded down to nearest integer.
well, you should ignore any number after num/2 as they will not be divisible
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution