Median of Two Sorted Arrays, four ways

Try:
CALL
1 / 1

Code

The highlighted line runs next. The pill shows the live values in the running call.

Cost

Work done so far, and how the four solutions compare

The arrays

Highlighted cells are the ones in play

Keyboard: ← → step, Space play or pause. Up to 8 sorted numbers per array (−99 to 99); one array may be empty. Results are shown as floats, like Python's 2.0. In Java and C++ the optimal solution uses INT_MIN / INT_MAX for the missing ±∞ borders.