/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return bool布尔型 */ function isValid( s ) { // write code here let arr = [] // 栈 const lefts = '({[' const rights = ')}]' const map = new Map() rights.split('').forEach((val, index) => { map.set(val, lefts[index]) }) for (let i ...