摘要: Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re... 阅读全文
posted @ 2015-02-06 14:14 穆穆兔兔 阅读(167) 评论(0) 推荐(0)
摘要: Write a function to find the longest common prefix string amongst an array of strings.思路: 很简单,其他字符串和第一个字符串比较,一个一个字符比较,反正最长不会超过第一个字符串的长度。class Solution... 阅读全文
posted @ 2015-02-06 11:12 穆穆兔兔 阅读(140) 评论(0) 推荐(0)
摘要: 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 @ 2015-02-06 10:38 穆穆兔兔 阅读(139) 评论(0) 推荐(0)