Quicksort.
Return the position of the first occurrence of sub
in v
.
The first element is at position 0 (0-based).
start
specifies the starting position to search.
Return a vector whose k
-th (0-based) element is the length of the longest
common prefix of v
and the suffix starting with v[k]
.
Extra functions on vectors
.