title: Median Algorithm for 4 sorted arrays
body: <p>I need to write an Algorithm for my course, to find the middle value of 4 sorted arrays different sizes in O(n), and i'm not allowed to create an array to store the data.
  how should I approach the problem? I thought about running on a loop with 4 indexes as if i'm sorting the arrays into a big array but instead just run without storing the data. the loop will stop at n/2 and it should provide me the middle value.
  writing it seems complex and very messy (i need to check for 4 of the arrays if i'm out of bound), is there a better way to approach this?</p>