Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx152
var assert = require('assert');function floodFill(matrix, row, col, newVal) { // Fill in this method return matrix;}function replaceWithMatch(match, matrix, r, c, newVal) {}const input = [ [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 0], [1, 0, 0, 1, 1, 0, 1], [1, 2, 1, 2, 1, 2, 0], [1, 2, 1, 2, 2, 2, 0], [1, 2, 2, 2, 1, 2, 0], [1, 1, 1, 1, 1, 2, 1],];console.log(floodFill(input, 0, 0, 3));class Graph { constructor() { this.adjacencyList = new Map(); this.verticesCount = 0; }OUTPUT
Results will appear here.