Code
wandbox sandbox
Ready
Compiling & running on the sandbox
stdin:
expected:
stdout:
stderr:
message:
Run your solution with the sample test cases to see results here.
3D Visual Dry-Run
Initial Input:
Live Visualizer
L
R
Output
Reference Solution · JS
Reference code unavailable — follow the code line below.
Code Being Executed
Pointers / Focus
Variables State
What just happened
stdin
want
got
error
msg
🔒 Hidden test case — reread the constraints and think about edge cases.