# [Community puzzle] Execution Circle

This topic is about the puzzle Execution Circle.

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:

3 Likes

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.