Code
The highlighted line runs next. The pill shows the live values in the running call.
Variables
The data structures the code is building
Matrix
Values slide from the cell they are read from to the cell they are written to
Given an n × n matrix, rotate it 90° clockwise in place: change matrix itself without allocating another 2D matrix.
The highlighted line runs next. The pill shows the live values in the running call.
The data structures the code is building
Values slide from the cell they are read from to the cell they are written to
The matrix is n × n. The highlighted row is the solution being traced.
Keyboard: ← → step, Space play or pause. Enter a square matrix up to 6 × 6 like [[1,2],[3,4]]. Values fly between cells when you step forward one step at a time.