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.
Didn't knew that precision can be that high, thanks!
BTW I really like your solution ;-)
Hey !
I always have issues with
float
s in Python (and most languages), like bad rounding/truncation... So I play withinteger
s (and divide at the end only if needed)In this exercise we are playing with too many decimals to be really accurate, so try to implement your
while
based solution with integers - it should do the trick.Cheers
This is only an exercise. I didn't rewrite a router from scratch, it only needed to work - and it does well!
You should explain why in real life no one should run callback in bind method instead of just writing that : this is not constructive.
Edit: nevermind, with a little optimization it's way faster !!
This comment is hidden because it contains spoiler information about the solution
thanks !
Same here. According to the link given by the error the author should just add someting like
# -*- coding: utf-8 -*-
on the first or second line. I've tried to add this at the beggining of my code, it doesn't work. Too bad 'cause I've spent some time in it and I can't get my points. Hope it'll be fixed soon.After some tests, adding
in test cases throws the same error. Simply adding
# -*- coding: utf-8 -*-
on the first line of the test cases fixed this.If someone could edit to add that snippet it would be great :)
I didn't knew I could add a translation :) thanks for doing it !
I'll try vol 4 soon ;)
This comment is hidden because it contains spoiler information about the solution