-
Notifications
You must be signed in to change notification settings - Fork 35
Overload_CodeJam_Algorithms_PartitionPoint
Andrew Koryavchenko edited this page Jul 4, 2017
·
4 revisions
Name | Description | |
---|---|---|
PartitionPoint(T)(IList(T), Predicate(T)) |
Returns the index i in the range [0, list.Count - 1] such that predicate(list[j]) = true for j < i and predicate(list[k]) = false for k >= i or list.Count if no such i exists
The list should be partitioned according to the predicate |
|
PartitionPoint(T)(IList(T), Int32, Predicate(T)) |
Returns the index i in the range [startIndex, list.Count - 1] such that predicate(list[j]) = true for j < i and predicate(list[k]) = false for k >= i or list.Count if no such i exists
The list should be partitioned according to the predicate |
|
PartitionPoint(T)(IList(T), Int32, Int32, Predicate(T)) |
Returns the index i in the range [startIndex, endIndex - 1] such that predicate(list[j]) = true for j < i and predicate(list[k]) = false for k >= i or endIndex if no such i exists
The list should be partitioned according to the predicate |