Balanced brackets: Difference between revisions
Content added Content deleted
Line 2,761:
return errorIndex(strBrackets.split(''), 0, 0);
}
// GENERIC
Line 2,774 ⟶ 2,775:
// TESTING AND FORMATTING OUTPUT
▲ }
▲ }
var lngPairs = 6,
strPad =
return range(0, lngPairs)
Line 2,799 ⟶ 2,788:
return "'" + s + "'" + strPad.slice(w + 2) +
(blnOK ? 'OK' : 'problem') +
(blnOK ? '' : '\n' +
})
.join('\n');
})();</lang>
Sample output:
|