I have a int64_t
vector containing N elements that are divided to k ordered segments.
e.g if N = 9 and K=3 it can look something like that:
5,6,7,1,2,3,7,8,9
Is there a way to merge the segments in place without first iteratively coping them to another N/K sized arrays and merge?