← Goldman Sachs questions
CodingEasyReported in a candidate post, Jul 2020

Final coordinates from a move string

Filed under Goldman Sachs

Given a string of moves made of U, D, L and R, starting at (0, 0), compute the final coordinates. U increases y by 1, D decreases y by 1, R increases x by 1 and L decreases x by 1. The candidate also…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.