Solution to Sub-task: Creating a maze

The solution to the Sub-task: "Creating a maze" of the project "Maze Solver".

We'll cover the following

Creating a maze

The task is broken into two parts. Copy arr and assign it to grid property. But if arr was undefined, just assign grid to a randomly generated array. The solution is as follows.

Get hands-on with 1200+ tech skills courses.