angry professor in js code example
Example: angry professor javascript
const angryProfessor = (k, a) => a.filter(v => v < 1).length < k ? 'YES' : 'NO'
const angryProfessor = (k, a) => a.filter(v => v < 1).length < k ? 'YES' : 'NO'