Ad
  • Custom User Avatar

    All for you, my friend!
    Also you can try my others katas, part of them are the same difficult

  • Custom User Avatar

    Interesting. If we scale the problem up to 100 players each with 10 cards, the more generic logic is necessary, and thinking about it is fun.

  • Custom User Avatar

    I just wanted to say thank you for the author of this kata, took me 3 days to solve. And enjoyed the struggle. Thank you sir for the great work.

  • Custom User Avatar

    In Dart, the test expect the player function to have parameters that are dynamic lists instead of List<int> and thus will throw an error. Not a huge issue, but since the Katas are about writing good code, and good code has conservative type annotations, it "spoils" the Kata a bit.

  • Custom User Avatar

    Quite a challenging and funny kata to solve, well done.

  • Custom User Avatar

    Quite challenging kata in fact, well done.

  • Custom User Avatar

    Updated to String[]. Thanks for paying attention!

  • Custom User Avatar

    Groovy: why do fixed tests pass List<String> as argument, while random tests pass String[] ? You should choose 1 and give proper types in initial code.

  • Custom User Avatar

    recursive function for returning distance

  • Custom User Avatar

    If compiler produce a binary and the binary works, that's clearly legal.

    But, as you don't put parenthesis on a variable, it's better to use Invoke() to clarify the context.

  • Custom User Avatar

    My point that some people prefere to complite kata with minimum stuff. But input already insist them to use expansions. At other side, you always can easily get dictionary from array, if you want solve it with em.
    Anyway, its only my opinon and you made a good translation

  • Custom User Avatar

    I appreciate this, but the Kata is implemented using a dictionary in almost every language. C# has a dictionary class, so using arrays of tuples instead is a less faithful translation of the original. Plus, the array's search method will throw, which is more burden on the solver. And despite this not being a performance Kata, why would you unnecessarily take an O(n) problem and make it O(nm) just to use 2 less namespaces?

  • Custom User Avatar

    Why not to use array of tuples? It seems more native then add Linq, Collections.Generic and Newtonsoft.Json namespaces

  • Custom User Avatar

    Yes, you are right, it is very similar. Unfortunately, I didn't see that kata before.

  • Custom User Avatar

    it's a (very slightly modified) duplicate of 21 sticks

  • Loading more items...