Median of Two Sorted Arrays

http://leetcode.com/onlinejudge#question_4

There are two sorted arrays A and B of size m and n respectively. Find
the median of the two sorted arrays. The overall run time complexity
should be O(log (m+n)).
type conversion, return recursion call

Failed on {1,1} {1,2}
Longest Consecutive Sequence

http://leetcode.com/onlinejudge#question_128

Run time error on :
[2147483646,-2147483647,0,2,2147483644,-2147483645,2147483645]
Use map for the memory issue

input output expected
[0] 0 1
Handle empty and 1 element case

input output expected
[0,0] 0 1
Passed all