You are viewing a single comment's thread. Return to all comments →
Javascript
function lonelyinteger(a) { for (let i = 0; i < a.length; i++) { let filteredArr = a.filter((v) => v === a[i]) if (filteredArr.length === 1) return filteredArr[0] } return 0 }
Seems like cookies are disabled on this browser, please enable them to open this website
Lonely Integer
You are viewing a single comment's thread. Return to all comments →
Javascript