A simple approach at testing algorithms time performance.
In an array, find the number that appears more than 50% of the time.
- Input:
number[]
- Output:
number | false
, the result orfalse
if none found.
Used to measure different approaches at solving the same algorithm.
A simple approach at testing algorithms time performance.
In an array, find the number that appears more than 50% of the time.
number[]
number | false
, the result or false
if none found.Used to measure different approaches at solving the same algorithm.