Fill a 2D array from a 1D array
Filed under Zycus
The question
Given a 1D array of size 2m containing random numbers and a 2D array of size m*m, fill the 2D array elements following a specific sequence tied to the 1D array.
No write-up yet. Related questions below have one.
Related Zycus questions
Collected from public candidate posts and coding forums. Updated Nov 2026.