Skip to content

Commit b9998a6

Browse files
authored
Wrapping the example matrix with outer array
Without the outer array , given arrays are passed as 4 arguments to the `island` function
1 parent bbbf343 commit b9998a6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Graphs/NumberOfIslands.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ const islands = (matrixGrid) => {
8181
export { islands }
8282

8383
// islands(
84-
// ['1', '1', '0', '0', '0'],
85-
// ['1', '1', '0', '0', '0'],
86-
// ['0', '0', '1', '0', '0'],
87-
// ['0', '0', '0', '1', '1']
84+
// [
85+
// ['1', '1', '0', '0', '0'],
86+
// ['1', '1', '0', '0', '0'],
87+
// ['0', '0', '1', '0', '0'],
88+
// ['0', '0', '0', '1', '1']
89+
// ]
8890
// )

0 commit comments

Comments
 (0)