Available question text
Given two strings of 'L', 'R', and 'X', determine if start can be transformed into result by repeatedly applying moves "XL" → "LX" (L moves left) and "RX" → "XR" (R moves right). This reduces to verifying the L/R order (ignoring X) is the same and that every L in start is not left of its target and every R in start is not right of its target.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Google
Leetcode 777. Swap Adjacent in LR String
Reported Jul 31, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source