leetcode2sumc leetcode test 一个简单的leetcode案例测试工具
leetcode 2和c描述一个简单的leetcode案例测试工具。安装npm我leetcode_test示例如何使用故意错误回答,显示失败。虽然答案的顺序不同,但判断是对的。当结果为数组时,添加案例的第三个参数来决定是否排序。 example_1_question_010代码: let test = require('leetcode_test').test /** * @param {string} s * @param {string} p * @return {boolean} */ var isMatch = function (s, p) { if (p.length === 0) { return s.length === 0 } firstMath = s.length > 0 && (p[0] === s[0] || p[0] === '.') if (p.length >= 2 && p[1] === '*') { //the following two parts can't exchange their position retur
下载地址
用户评论