• + 0 comments

    TypeScript

    function angryProfessor(k: number, a: number[]): string {
        return a.filter((arriveTime) => (arriveTime <= 0)).length >= k ? "NO" : "YES";  
    }