Click or drag to resize
ThreeSumCount Method
Returns the number of triples (i, j, k) with i < j < k such that a[i] + a[j] + a[k] == 0.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static int Count(
	int[] a
)

Parameters

a
Type: SystemInt32
the array of integers

Return Value

Type: Int32
the number of triples (i, j, k) with i < j < k such that a[i] + a[j] + a[k] == 0
See Also