Search
⌘K

Leetcode 816. Ambiguous Coordinates

Given a parenthesized digit string, produce all possible coordinate pairs by splitting the inner digits into two parts and inserting optional decimal points, enumerating all placements that satisfy the formatting rules (no extraneous leading/trailing zeros and decimals must have a digit before them). This is essentially a constrained enumeration/backtracking problem over split positions and decimal insertions with simple validation.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.