7
var canConvertString = function (s, t, k) {9
if (s.length === t.length) {11
let countMap = new Map();12
for (let i = 0; i < s.length; i++) {13
let n1 = s[i].charCodeAt();14
let n2 = t[i].charCodeAt();19
// exclude special case 021
// Considering repeated letters, the unrepeated move should change to r + 26*n (n>=0)22
// use hash table to count the same letter23
if (!countMap.has(r)) {28
// n time to move, n means the count of the same letter29
let c = countMap.get(r);32
countMap.set(r, c + 1);36
// check all possible move in range37
for (let i = 0; i < tmp.length; i++) {