Find the most frequent substring of a certain length
Anonymous
const str1 = "inengineering"; const n1 = 2; const result1 = findMostCommonSubstring(str1, n1); console.log({ result1 }); // Output: 'in'
Check out your Company Bowl for anonymous work chats.