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.
xxxxxxxxxx
35
var assert = require('assert');
function minimumParenthesesRemoval(s) {
return;
}
try {
assert.equal(minimumParenthesesRemoval('a)b(c)d'), 'ab(c)d');
console.log('PASSED: ' + "`minimumParenthesesRemoval('a)b(c)d')` should return `'ab(c)d'`");
} catch (err) {
console.log(err);
}
try {
assert.equal(minimumParenthesesRemoval('alg(o(d)a)il)y'), 'alg(o(d)a)ily');
console.log('PASSED: ' + "`minimumParenthesesRemoval('alg(o(d)a)il)y')` should return `'alg(o(d)a)ily'`");
} catch (err) {
console.log(err);
}
try {
assert.equal(minimumParenthesesRemoval('))(('), '');
console.log('PASSED: ' + "`minimumParenthesesRemoval('))((')` should return `''`");
} catch (err) {
console.log(err);
}
OUTPUT
Results will appear here.