You are viewing a single comment's thread. Return to all comments →
I was so proud of my answer until I saw yours. You sir are a legend.
var arrived = 0;
a.forEach(a => (a <= 0 && arrived++));
return arrived >= k ? 'NO' : 'YES';
Seems like cookies are disabled on this browser, please enable them to open this website
Angry Professor
You are viewing a single comment's thread. Return to all comments →
I was so proud of my answer until I saw yours. You sir are a legend.
var arrived = 0;
a.forEach(a => (a <= 0 && arrived++));
return arrived >= k ? 'NO' : 'YES';