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.
It's quite disturbing that random tests time out without telling me what is the reason – generic slowness of the algorithm or one test run into an infinite loop, but which one? Wasted so much time trying to find edge cases, still no result. I remember now, this is exactly why we abandoned codewars previously. I will not make this mistake again.
This is clever, but how is this a best practice?
You need to add init function to kata_test package, with random seed initialization. like this:
func init() {
rand.Seed(time.Now().UnixNano())
}
ah! rune! Guess the tests didn't mind that mine wasn't unicode-safe. Almost feel like there should be test cases with unicode, but then, this is an 8 kyu kata.
Works now but I'm not 100% sure if it's the right way to set it up, we will see
I had very little time last Monday (weekly code kata) and I don't know where to paste them yet but I'll figure
Thanks for translation. What about random tests?