[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 小刀初试 阅读(124) 评论(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 小刀初试 阅读(107) 评论(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 小刀初试 阅读(126) 评论(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 小刀初试 阅读(126) 评论(0) 推荐(0)
< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10

统计

点击右上角即可分享
微信分享提示