This topic is about the puzzle Execution Circle.
Feel free to send your feedback or ask some help here!
This topic is about the puzzle Execution Circle.
Feel free to send your feedback or ask some help here!
There should be more test-cases to make the trick easier to find.
Iâm level 29, I can do it but as far as I did not solve the puzzle, I wonât do it.
I disagree test cases would change much. The âtrickâ (depending on which level you want to see it at) is already concealed by the input format. If someone wants to expose it, heâs already got to simplify that, and if heâs able to do that/think of doing that, he doesnât really need the test cases.
FWIW, I solved it without the âfull trickâ (that Iâm in a bad position to actually discuss since I only witnessed discussion about it, but didnât actually read/view the full of it).
The rules are simple. In my opinion itâs easy to do different cases by hand to find the trick.
Hi! What is this âtrickâ everybody is writing in this thread? I think I solved the puzzle without the trick, I just wrote the formula down on the paper and converted it into the code.
Could someone provide some more test cases for this puzzle?
My equation is fast enough but cannot pass two of the validation tests. No clue to check whatâs wrong.
My code works on all test cases but fails the three validators with D=âRIGHTâ. Does someone know whatâs wrong?
Now it works. My previous code was obviously wrong but itâs still irritating that it made all test cases passâŚ
I donât think this is a âhardâ puzzle at all, not from a developerâs standpoint. If you recognize the problem as a simpler variant of a classic recreational math problem (killing every 2nd person instead of every 3rd) then itâs easy to look up a canned solution. Even if not, itâs not too hard to find an O(log n) solution to the âstart at 0, move clockwiseâ basic version and then rename the answer to reflect the given start and direction.
What I want to know is, âIn what universe does âLEFTâ mean âclockwiseââ?
In this one:
Good example!
Except, to a clock, that would be anticlockwise I suppose.
Man, when people are facing towards the center of the circle, and each one is passing duties to the person on oneâs LEFT, the motion is clockwise.