Select first k elements in C# LINQ such that the sum of elements is less than S
128502
Linq: How to query items from a collection until the sum reaches a certain value
43601
Find the first occurrence/starting index of the sub-array in C#
150
how to select first N rows from a table in T-SQL?
76247
Preserving order with LINQ
130514
best way to pick a random subset from a collection?
135100
How can you handle an IN sub-query with LINQ to SQL?
130604
Remove oldest n Items from List using C#
100338
Is there a LINQ syntax for the (T, int) overloads of Where and Select?
53922
Getting odd/even part of a sequence with LINQ
19022
Get the first item from an iterable that matches a condition
153378
Is there a good LINQ way to do a cartesian product?
81549
How would you do a "not in" query with LINQ?
145866
How do I get the index of the highest value in an array using LINQ?
7153
How to get first N elements of a list in C#?
85969
ascending/descending in LINQ - can one change the order via parameter?
75392
How can I use Pick to select items in one list when a value in a corresponding list is $\leq$ some value?
40772
"IN" Operator in Linq