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.
This is great! One small thing I noticed though was GetDivisors has the potential to produce duplicate values.
100 for example returns 1 2 4 5 10 10 20 25 50 with the 10s duplicated,
something like:
if (i != 1 || number / i != i) yield return number / i;
raised as issue above
Great kata, perfect for practicing OOP & TDD
Thanks for the kata, had fun solving this puzzle!
I was struggling to understand why my code times out, and then I removed Console.WriteLine(maze) :))
Great kata, always fun to create interpreters for esoteric languages
Really like this solution, using Func dictionary is cool
Good solution, but better use switches in such situations as compiler will create switch hash lookups which is faster than if statements
Not sure if the author fixed it, but the tests work fine for me now
Funny thing - the tests were timing out for me and I couldn't figure out why as the solution seemed fast enough; but then I switched to C# 7.3 from Mono and got an instant pass without changing anything else! I guess the compiler really matters for some tasks.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The feeling I got after thinking that I suck at math for so many years and finally solving this kata...
In C# the results are reversed.
language?
Loading more items...