Find the smallest positive integer that does not occur in a given sequence.
Count the number of passing cars on the road.
Compute number of integers divisible by k in range [a..b].
Find the minimal nucleotide from a range of sequence DNA.
Find the minimal average of any slice containing at least two elements.
Compute number of distinct values in an array.
Maximize A[P] * A[Q] * A[R] for any triplet (P, Q, R).
Determine whether a triangle can be built from a given set of edges.
Compute the number of intersections in a sequence of discs.
Determine whether a given string of parentheses (multiple types) is properly nested.
N voracious fish are moving along a river. Calculate how many fish are alive.
Determine whether a given string of parentheses (single type) is properly nested.
Cover "Manhattan skyline" using the minimum number of rectangles.
Find the index S such that the leaders of the sequences A[0], A[1], ..., A[S] and A[S + 1], A[S + 2], ..., A[N - 1] are the same.