Execute 2D Array Transform Instructions
CodingPhoneSoftware Engineer, Machine Learning EngineerReported May, 2026
Company question banks are included with the Insider plan.
You are given an n x n integer matrix grid and a list of instructions to apply to it in order. Each instruction is a triple [op, a, b]:
op | Meaning |
|---|---|
0 | Swap rows a... |