Content deleted Content added
2nd try, delete cat computing |
m fmt headline levels (to start with "==", WP Check Wikipedia check #7; fmt |
||
Line 1:
In computing, a '''one-pass algorithm''' is one which reads its input exactly once, in order, without unbounded [[Buffer (computer science)|buffering]]. A one-pass algorithm generally requires O(n) (see [[Big O Notation|'big O' notation]]) time and less than O(n) storage (typically O(1)), where n is the size of the input.
Given any list as an input:
* Count the number of elements.
Line 17:
* Find the maximum gap between two appearances of a given symbol.
Given any list as an input:
* Find the middle element of the list.
Line 23:
Given a list of numbers:
* Find the [[median]].
* Find the [[mode (statistics)|
* Sort the list.
|