Ad
  • Custom User Avatar

    First kata I've done where I felt like I was able to achieve a perfect balance between simplicity and the approach. Really enjoyed this one.

  • Custom User Avatar

    I don't get to decide the kyu difficulty -- whoever approves the first language version makes that decision and it is stuck forever-after whether you or I like it or not.

  • Custom User Avatar

    This kata is 6 years old. The overall difficulty levels increased drastically since then.

  • Custom User Avatar

    Dinglemouse, really enjoyed this one, but seemed a little too easy for 3kyu. Found a pretty straightforward solution in about an hour where I've spent a week on some of your others.

  • Custom User Avatar

    Don't be sorry. Fixed!

  • Custom User Avatar

    In C# tests, test named "ExBad5" has a useless trailing comma in the last grid row.
    Sorry, but I had to point it out :)

  • Custom User Avatar

    Awesome kata. Thought this would be easier than "Blaine is a pain" because they seem similar, but it was tricky in a different way. At first I was convinced the "ambiguity" rules made no sense...then I saw it! Makes perfect sense.

  • Custom User Avatar

    It was staring me right in the face lol. So embarrassed.

  • Custom User Avatar

    so like is there an overpass at that station or what

  • Custom User Avatar

    (C#)

    What am I missing about initial train positions?

    The test for this track is expecting a crash at move 0:

    aTrain: Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee, position: 7
    bTrain: Xxxx, position: 0
    /----\     /----\ 
    |     \   /     | 
    |      \ /      | 
    |       S       | 
    |      / \      | 
    |     /   \     | 
    \----/     \----/
    

    Based on the instructions, it seems like the initial position should be:

    Xxxx-\     eeeeee
    |     \   e     e
    |      E e      e
    |       e       e
    |      e e      e
    |     e   e     e
    \eeeee     eeeeee
    
  • Custom User Avatar
  • Custom User Avatar

    Mine is a little toothy compared to the solutions using DataTable, but seems to be 2x as fast.

  • Custom User Avatar

    My bad. Thanks for the clarification.

  • Custom User Avatar

    Your solution is incorrect. The .ThenBy(x => x.Value) part in your solution does not conform to any requirement. The values of nodes should not be sorted, they should appear in oder of appearance on their "level".

    Please see how the "example 2" shows the order of nodes 8 and 4.

  • Custom User Avatar

    I don't think the C# tests are working. Partial output...

    0:705

    1:155

    1:798

    2:304

    2:736

    2:800

    Expected and actual are both <System.Collections.Generic.List`1[System.Int32]> with 99 elements
    Values differ at index [3]
    Expected: 736
    But was: 304

  • Loading more items...