摘要: 在leetcode上刷题的时遇到一位大佬,写出了远超同行的耗时68ms的代码,看到对数组最短字符串的处理方式,一时叹为观止,遂记录一二,话不多说,上代码 strs = ['123','1234','12345'] let lens = strs.map(item => item.length); l 阅读全文
posted @ 2020-06-17 02:49 姜小希 阅读(1117) 评论(0) 推荐(0) 编辑