You are viewing a single comment's thread. Return to all comments →
unction sockMerchant(n, ar) { // Write your code here ar.sort(); let previous;
return ar.reduce((acum, current)=>{ if (current === previous) { previous = ""; acum += 1; }else{ previous = current; } return acum; }, 0);
Seems like cookies are disabled on this browser, please enable them to open this website
Sales by Match
You are viewing a single comment's thread. Return to all comments →
unction sockMerchant(n, ar) { // Write your code here ar.sort(); let previous;