- Software engineer
- Junior
- 20 min
Cove independent manifest
Copy each manifest row. Add delta to the first value of each nonempty copied row, then return original rows followed by copied rows. The originals must keep their values. Empty rows remain present.
Skills and rubricnested-copy-boundary
- The outer list owns references to rows. Copying each row keeps the original values unchanged when the copied first item changes.
- For [[0],[0]] with delta -2, the output is [[0],[0],[-2],[-2]]. Empty rows must remain empty.
- Runs a concrete example and describes its expected result before declaring success.