Driving Licence
CodeChefOpen on judge ↗
Chef is doing part-time as a driving invigilator and this is his first day at work. He wanted to save his work by writing an instruction sheet for the test driver. The instruction sheet had instruction in the form of a long string $S$ having only three characters $['F', 'R', 'L']$. Where $'F'$ means go forward by one unit, $'L'$ means rotate 90 degrees to the left and similarly, $'R'$ means rota
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start