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.
I see from other solutions that the Linq option I was missing hardly was 'ThenBy' to sort the names inside List.
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.
Upvoted- thanks for this tip. I completely missed that word and ended up with some tests failure.
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
Unfortunately it spams with (for columns test):
undefined method `keys' for nil:NilClass
Simplified backtrace: block (3 levels) in
Thank you kindly for your contributions!
Ugh, extreme redundancy... Could be better but I just wanted to finish it
yet the author doesn't give a F... :)
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"]
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.
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...?
Oh, I left debug...
I got the same, looks like the answer has been hidden, so still others can claim this unresolved
This comment is hidden because it contains spoiler information about the solution