Leetcode做题笔记

Posted on 三 08 七月 2015 in 编码 • Tagged with Leetcode

Two Sum

  • The return numbers in vector should be increasely order.

Longest Substring Without Repeating Characters

  • Record the position of every characters so far.

Median of Two Sorted Arrays

  • Use the method of findKth
  • The start index should add to k

Longest Palindromic Substring

  • Use Manacher algorithm.reference
  • Time complexity ...
Continue reading