HubSpot Interview Question

Find the most frequent substring of a certain length

Interview Answer

Anonymous

Oct 19, 2024

const str1 = "inengineering"; const n1 = 2; const result1 = findMostCommonSubstring(str1, n1); console.log({ result1 }); // Output: 'in'