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.
OP solved it, closing
instead of
xi += 1
you also can usexi++
This comment is hidden because it contains spoiler information about the solution
Maybe instead of calculating the factor by dividing
1 / s
I should have done it as in other solutions that first multiply the velocity by the number of seconds in an hour (3600
) and then divide that bys
. We'll never know, I'm never looking back on this answer this is now part of my dark past.I don't deserve the points. I had to attempt it like 12 times for the random tests to pass.
This comment is hidden because it contains spoiler information about the solution
Given that the task is very specific I'd say it is, as it is performant and the code is readable.
If you had to, for example, generate neighbors up to a variable distance
n
received as a parameter of the function, that would be a different story.Comparing the bytes directly! Clever
The go version is missing the package name at the start and thats causing a weird 422 server error, please add it:
Nice, this one actually works with UTF-8
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you are not handling white spaces, you should have in mind that it should work for any url not matter how complex it is and that you are changing the stype of some text. Please look at markup tutorial, or some chat application to see some applications.
@Javatlacati Dart
Oh, thanks a lot! Makes sense
Loading more items...