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.
xxxxxxxxxx45
var assert = require('assert');class MostConnectedOnes {  constructor(matrix) {    // implement this method  }  // main interface  max() {    // implement this method  }}try {  const matrix = [    [1, 1, 0, 0],    [0, 0, 1, 0],    [0, 1, 1, 0],    [1, 0, 0, 0],  ];  const mco = new MostConnectedOnes(matrix);  assert.equal(mco.max(), 3);  console.log('PASSED: ' + 'Test 1');} catch (err) {  console.log(err);OUTPUT
Results will appear here.