You are viewing a single comment's thread. Return to all comments →
function pickingNumbers(a: number[]): number { const occur = Array(100).fill(0); for(let x of a) { occur[x]++; } return Math.max(...occur.slice(0, -1).map((o, i) => o + occur[i+1])); }
Seems like cookies are disabled on this browser, please enable them to open this website
Picking Numbers
You are viewing a single comment's thread. Return to all comments →