[LeetCode] Longest Substring Without Repeating Characters 解题报告

摘要: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo... 阅读全文
posted @ 2012-12-25 10:03 小刀初试 阅读(133) 评论(0) 推荐(0)

[LeetCode] Longest Palindromic Substring 解题报告

摘要: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes... 阅读全文
posted @ 2012-12-25 08:45 小刀初试 阅读(112) 评论(0) 推荐(0)

[LeetCode] Longest Common Prefix 解题报告

摘要: Write a function to find the longest common prefix string amongst an array of strings.» Solve this problem[解题报告]又一个实现题。遍历字符串数组,每次用当前prefix和下一个字符串匹配以生成... 阅读全文
posted @ 2012-12-25 05:49 小刀初试 阅读(133) 评论(0) 推荐(0)

[LeetCode] Letter Combinations of a Phone Number 解题报告

摘要: Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon... 阅读全文
posted @ 2012-12-25 03:48 小刀初试 阅读(136) 评论(0) 推荐(0)