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.
Ok. I think that it is a problem that the test suite outputs horrendeous amounts of crap if one of the big tests fail and I'm not sure how to solve this so that it is possible to figure out what tests are failing.
This comment is hidden because it contains spoiler information about the solution
I'm having some problems with the build server. I've optimized in several iterations and have reached a point where I beleive my code is efficient enough, but I keep getting these stupid problems with the builds (only the "Attempt" builds, the "Run Examples" works fine).
Sometimes it complains about JSON errors, sometimes I get HTTP 500, and currently I'm stuck with "Failed to process output. It is possible that too much data was written to STDOUT." even though I don't write anything at all to stdout.
I think that the tests might be a bit on the heavy side for the servers, what do you think?
Dude please don't use std::list. It is incredibly slow and useless.
I found the description somewhat confusing. Lots of words not describing the ultimate goal for the kata. I suggest to shorten it and make it more algorithmic. Something like:
But there might have been a reason to be vague in order to make the problem harder, in that case i think it would make sense to give some motivation so that it is possible to get an idea about the problem domain and what exactly we are solving.
Yes indeed, elixir version messed up. The tests are not checking against a string
I can't figure out how to review :P
Elixir please! :D
Lol my first silly Elixir attempt
(Elixir) I've tried the recursive solution and that one runs out of time with very large numbers, I've also tried the factorial solution and that one has rounding errors with very large numbers. Not sure what to do now, some hint in the problem description would be suitable since this is a 7kyu.
Description is messed up for the C++ version
Sorry :D
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If you benchmark your map solution with one that scans the whole range you will see that it takes an incredible amount of items for your solution to be faster, not sure millions is enough.
std::map is the worst container in the language, next to std::list (std::map uses std::list in its implementation). Scanning a contiguous segment of memory is cache friendly and about 300 times faster (depending on the CPU) than a memory lookup. Not to mention all the dynamic memory allocations you force with your implementation.
I just might provide you with some performance benchmarks to prove my point.
Loading more items...