โ† UBS questions

Maximum distance from initial position

Filed under UBS

The question

Given a string with 'A' (anti-clockwise), 'C' (clockwise), and '?' (replace with A or C), find the maximum distance from the initial position.

No write-up yet. Related questions below have one.

Related UBS questions

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