Zigzag Array

Zigzag Array

Your function should create an array of arrays, that represents a two-dimensional grid with the given number of rows and cols.

This grid should contain integers (number) from start to start + rows * cols - 1 in ascending order, but the elements of every odd-index row have to be listed in descending order, so that when read in ascending order, the numbers zigzag through the two-dimensional grid.

example

Input: Two integers (number) - rows and columns. One optional integer (number) - start.

Output: Array of arrays.

Examples:

assert.deepStrictEqual(createZigzag(3, 5),...
You should be an authorized user in order to see the full description and start solving this mission.