You are viewing a single comment's thread. Return to all comments →
** Python Solution **
def angryProfessor(k, a):
a.append(1) a_sorted = sorted(a) i = a_sorted.index(1) return 'NO' if i >= k else '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 →
** Python Solution **
def angryProfessor(k, a):