Starting at (0,0) facing North, track the final (x, y) coordinates after a sequence of commands: 'L' (turn left), 'R' (turn right), 'F' (move forward), 'B' (move backward).
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.