Is there a ready algorithm that keeps calculating the maximum of elements in the same index of multiple sorted arrays till we have maximum so for example:
[1,3,