Returns the number of triples (i, j, k) with i < j < k such that a[i] + a[j] + a[k] == 0.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static int Count(
int[] a
)
Parameters
- a
- Type: SystemInt32
a the array of integers
Return Value
Type:
Int32the number of triples (i, j, k) with i < j < k such that a[i] + a[j] + a[k] == 0
See Also