You are viewing a single comment's thread. Return to all comments →
JS/Javascript:-
function angryProfessor(k, a) { let onTime = 0; for (let i = 0;i<a.length;i++) { if (a[i] <= 0) onTime++; if (onTime >= k) return 'NO'; } return '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 →
JS/Javascript:-