lengthOfLongestSubstring  and findMedianSortedArrays