You are viewing a single comment's thread. Return to all comments →
Here is my solution in JavaScript
let onTime = 0; for(let i = 0; i < a.length; i++){ if(a[i] <= 0){ onTime++ } } return onTime < k ? "YES" : "NO"
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 →
Here is my solution in JavaScript