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
29
var assert = require('assert');
function remove_adjacent_duplicates(s) {
// fill in the solution
return s
}
try {
assert.equal(remove_adjacent_duplicates('abbaca'), 'ca');
console.log('PASSED: ' + "`remove_adjacent_duplicates('abbaca')` should return `'ca'`");
} catch (err) {
console.log(err);
}
try {
assert.equal(remove_adjacent_duplicates('azxxzy'), 'ay');
console.log('PASSED: ' + "`remove_adjacent_duplicates('azxxzy')` should return `'ay'`");
} catch (err) {
console.log(err);
}
try {
assert.equal(remove_adjacent_duplicates('aaaa'), '');
console.log('PASSED: ' + "`remove_adjacent_duplicates('aaaa')` should return `''`");
} catch (err) {
console.log(err);
OUTPUT
Results will appear here.