Container With Most Water Algorithm

Distilled water is water that has been boiled into vapor and condensed back into liquid in a separate container. Thus, distilled water is one type of purified water. Drinking water has been distilled from sea water since at least about ad 200, when the procedure was clearly described by Alexander of Aphrodisias. Its history predates this, as a passage in Aristotle's Meteorologica (II.3, 358b16) refers to the distillation of water. Captain Israel Williams of the Friendship (1797) improvised a manner to distill water, which he described in his journal.

Container With Most Water source code, pseudocode and analysis