Search
⌘K
Get Premium
Leetcode 2833. Furthest Point From Origin
Given a sequence of moves on a number line where 'L' and 'R' are fixed steps and '_' can be chosen as either left or right, choose directions for the '_' characters to maximize the absolute final displacement from the origin after all moves and return that distance.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.