I don't understand what median means


  • 0
    Y

    Input: [1,1], [1,2]
    Expected: 1.00000

    My solution way is merge [1,1] and [1,2] to [1,2], so the answer would be (1+2)/2 = 1.5
    What did I made wrong?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.