Click or drag to resize
ThreeSumFast Methods

The ThreeSumFast type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCount
Returns the number of triples (i, j, k) with i < j < k such that a[i] + a[j] + a[k] == 0.
Public methodStatic memberMainTest
Reads in a sequence of distinct integers from a file, specified as a command-line argument; counts the number of triples sum to exactly zero; prints out the time to perform the computation.
Public methodStatic memberPrintAll
Prints to standard output the (i, j, k) with i < j < k such that a[i] + a[j] + a[k] == 0.
Top
See Also