-
Notifications
You must be signed in to change notification settings - Fork 36
Overload_CodeJam_Algorithms_EqualRange
andrewvk edited this page Mar 24, 2016
·
5 revisions
[This is preliminary documentation and is subject to change.]
Name | Description | |
---|---|---|
![]() ![]() |
EqualRange(TElement)(IList(TElement), TElement) |
Returns the tuple of [i, j] where i is the smallest index in the range [0, list.Count - 1] such that list[i] >= value or list.Count if no such i exists j is the smallest index in the range [0, list.Count - 1] such that list[i] > value or list.Count if no such j exists
Comparer.Default is being used for comparison |
![]() ![]() |
EqualRange(TElement)(IList(TElement), TElement, Int32) |
Returns the tuple of [i, j] where i is the smallest index in the range [from, list.Count - 1] such that list[i] >= value or list.Count if no such i exists j is the smallest index in the range [from, list.Count - 1] such that list[i] > value or list.Count if no such j exists
Comparer.Default is being used for comparison |
![]() ![]() |
EqualRange(TElement, TValue)(IList(TElement), TValue, Func(TElement, TValue, Int32)) | Returns the tuple of [i, j] where i is the smallest index in the range [0, list.Count - 1] such that list[i] >= value or list.Count if no such i exists j is the smallest index in the range [0, list.Count - 1] such that list[i] > value or list.Count if no such j exists |
![]() ![]() |
EqualRange(TElement, TValue)(IList(TElement), TValue, Int32, Int32, Func(TElement, TValue, Int32)) | Returns the tuple of [i, j] where i is the smallest index in the range [from, to - 1] such that list[i] >= value or "to" if no such i exists j is the smallest index in the range [from, to - 1] such that list[i] > value or "to" if no such j exists |