0

When I was debugging a lambda-based search, I noticed that it simply went through the list linearly, so it made we wonder if there was any advantage to doing a lambda search on a list in C# versus coding your own type-checking linear search on the same list.

4

1 回答 1

1

Lambda 方法执行线性搜索;因此,该方法是一个 O(n) 操作,其中 n 是 Count。

有关 Lambda 的更多详细信息,请阅读这些链接 Lambda Search

于 2015-09-12T08:50:37.037 回答