摘要:
括号匹配度判断 function isMatch(str) { let stack = new Stack(); for (let i = 0; i < str.length; i++) { if (str[i] == "(" || str[i] == "[" || str[i] == "{") { 阅读全文
摘要:
封装的栈操作方法: https://www.cnblogs.com/LIXI-/p/16612874.html var sweetBox = new Stack(); sweetBox.push('red'); sweetBox.push('yellow'); sweetBox.push('red' 阅读全文
摘要:
封装的方法栈方法: https://www.cnblogs.com/LIXI-/p/16612874.html 判断回文数: function isHuiwen(str) { let stack = new Stack(); for (let i = 0; i < str.length; i++) 阅读全文