You are viewing a single comment's thread. Return to all comments →
Count() accepts a predicate, too:
Console.WriteLine(a.Count(x => x<=0) < 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 →
Count() accepts a predicate, too: