C#: How to iterate over a list with many conditions (filters and groups of items) [closed]
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 months ago . Let's say I have this list of ints: var numbers = new List<int> { 0, 0, 0, 27, 29, 24, 35, 33, 32, 1, 1, 1, 22, 55, 44, 44, 55, 59, 0, 0, 0, 0 }; I want to implement the search algorithm described below. I am looking for the number 59. Some unspecified condition determines if I