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.