Ad
  • Custom User Avatar

    I see from other solutions that the Linq option I was missing hardly was 'ThenBy' to sort the names inside List.

  • Custom User Avatar

    Please provide the note in description that the use of 'BigInteger' classes is banned BEFORE user attempt the test.
    I understand it's kyu 4 so no simple solution can be used here, but it should be clearly noted- not something I see when I'm already attempting the final solution.

  • Custom User Avatar

    Upvoted- thanks for this tip. I completely missed that word and ended up with some tests failure.

  • Custom User Avatar

    As noted in wiki the NASM katas are compiled with nasm -f elf64, that means you can pretty fine just use RDI instead of EDI for 64 bit access

  • Custom User Avatar

    Unfortunately it spams with (for columns test):

    undefined method `keys' for nil:NilClass
    Simplified backtrace: block (3 levels) in

  • Custom User Avatar

    Thank you kindly for your contributions!

  • Custom User Avatar

    Ugh, extreme redundancy... Could be better but I just wanted to finish it

  • Custom User Avatar

    yet the author doesn't give a F... :)

  • Custom User Avatar

    You should add that you can sort out only direct directions and delete the "smart" way of doing things. If you want to find the best way then don't force us to walk dozens of directions just to end up in the same spot. Yes, I'm talking about second example that should be [] not ["NORTH", "WEST", "SOUTH", "EAST"]

  • Custom User Avatar

    Indeed it is. It looks like the author wants to work only on direct pairs, so even if you make heck of a way and end up in the same place it's completely fine and "smart" way to move. Total bullshit.

  • Custom User Avatar

    I'm stuck on the same point as you. If you move north, then west, then south and then east, then you finally will still be on x=0 and y=0.
    In first example you have two "WEST" so normally you end up on x=1 and y=0, so the correct answer is one "WEST", but then you just magically revoke this rule and need to sort-out ONLY the direct pairs. This makes no sense at all. If a person go ['NORTH', 'WEST', 'SOUTH', 'EAST'] he will still end up in the same spot as was in the first place, so...?

  • Custom User Avatar

    Oh, I left debug...

  • Custom User Avatar

    I got the same, looks like the answer has been hidden, so still others can claim this unresolved

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution