摘要: function createArray(m,n){ return new Array(m).fill('').map(d=>new Array(n).fill(0)) } let arr = createArray(5,6) console.log(arr[0][0]) //0 ###注意 不能直 阅读全文
posted @ 2020-10-04 13:23 it-pupil 阅读(1470) 评论(0) 推荐(0) 编辑
摘要: /* * function ListNode(val, next) { * this.val = (val undefined ? 0 : val) * this.next = (next undefined ? null : next) * } */ function reverse(l){ le 阅读全文
posted @ 2020-10-04 13:12 it-pupil 阅读(670) 评论(0) 推荐(0) 编辑