Skip to content

M_CodeJam_Algorithms_LowerBound_3

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

Algorithms.LowerBound Method (IList(DateTimeOffset), DateTimeOffset)

Returns the minimum index i in the range [0, list.Count - 1] such that list[i] >= value or list.Count if no such i exists

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static int LowerBound(
	this IList<DateTimeOffset> list,
	DateTimeOffset value
)

VB

<ExtensionAttribute>
Public Shared Function LowerBound ( 
	list As IList(Of DateTimeOffset),
	value As DateTimeOffset
) As Integer

F#

[<ExtensionAttribute>]
static member LowerBound : 
        list : IList<DateTimeOffset> * 
        value : DateTimeOffset -> int 

Parameters

 

list
Type: System.Collections.Generic.IList(DateTimeOffset)
The sorted list
value
Type: System.DateTimeOffset
The value to compare

Return Value

Type: