http://leetcode.com/onlinejudge#question_1 http://leetcode.com/onlinejudge#question_4 But solution of Median of Two Sorted Arrays is not log(m+n). But they still passed the online judge.