We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Angry Professor
Angry Professor
Sort by
recency
|
1987 Discussions
|
Please Login in order to post a comment
def angryProfessor(k, a): count = 0 for i in a: if i <= 0: count += 1 if count >= k: return "NO" else: return "YES"
Here is my Python one-liner
This question is poorly written. HackerRank Authors need to improve the question's quality. Keep the questions straight forward, to understand.
Here is my solution in JavaScript
Here is problem solution in pYthon, Java, C++, C and Javascript - https://programmingoneonone.com/hackerrank-angry-professor-problem-solution.html