You are viewing a single comment's thread. Return to all comments →
function lonelyinteger(a) { let result,i,j; for(i=0; i<a.length; i++){ let count = 0; for(j=0; j<a.length; j++){ if(a[i]==a[j]){ count++; } } if(count==1){ result = a[i]; } } return result }
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 →