摘要:
Given a string s ang string t, find the minmum window in s. For example: s = "ADOBENCODEBANC"; t = "ABC"; Minimum window is "BANC"; t = "ABBC"; Minimu 阅读全文
摘要:
Write a function to find the longest common prefix string amongst an array of strings. 找出所有字符串的最长公共前缀. 思路:首先比较前两个字符串的公共部分,将其公共部分放到prefix中,然后再拿prefix和第 阅读全文