Good morning everyone, I am trying to solve this pretty easy puzzle, I do not get issues with the tests, but i stuck myself to only 33% when i submit it. I think it could be related to a different way to consider the rotations, here is what i considered:
considering a clockwise and counter-clockwise watching from the origin to the direction of the axis following a “right hand” approach, I said that:
F becomes U
F becomes L
U becomes R.
(I considered rotations clockwise up there).
Is this, by your point of view correct?
Do you have some kind of other inputs, else, about what I should check to verify the code to work correctly?
@AchrafLy That’s the usual problem with the stub generator in C: either the buffer sizes are wrong or the endline eating is not properly dealt with (depending on the way you see things). Anyway it very often does not work. Here is an example of a proper input parsing for this problem (/!\ endlines are read here):