1.涂色 function fn(own, need) { const arr1 = own.split('') const arr2 = need.split('') let ret = 0 arr2.forEach(item => { const index = arr1.indexOf(item) if (index > -1) { ret++ arr1[index] = null } }) return ret } 2.相似字符串 function fn(str) { if ((str.le...