You are viewing a single comment's thread. Return to all comments →
This is my one liner with Linq:
Console.WriteLine(a.Aggregate(0,(x,y)=>y>0?x:x+1)< 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 →
This is my one liner with Linq: