You are viewing a single comment's thread. Return to all comments →
My Typescript solution
function missingNumbers(arr: number[], brr: number[]): number[] { arr.forEach((a) => { const index = brr.indexOf(a); if(index > -1){ brr.splice(index, 1) } }) const isUnique = Array.from(new Set(brr)); return isUnique.sort((a, b) => a-b); }
Seems like cookies are disabled on this browser, please enable them to open this website
Missing Numbers
You are viewing a single comment's thread. Return to all comments →
My Typescript solution