编程题(Leetcode等)
GavinZhou_xd
一名小小程序员的努力,因为热爱,所以坚持
展开
-
leetcode之-题19
题目 19. Remove Nth Node From End of List Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2.原创 2016-02-18 14:20:56 · 802 阅读 · 0 评论 -
leetcode之-题17
题目 Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. I原创 2016-02-18 16:16:27 · 631 阅读 · 0 评论 -
leetcode之-题34
题目 Search for a Range Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm’s runtime complexity must be in the order of O(log n).原创 2016-05-01 22:33:26 · 665 阅读 · 0 评论 -
Leetcode之-题38
题目 The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, … 1 is read off as “one 1” or 11. 11 is read off as “two 1s” or 21. 2原创 2016-07-30 15:39:45 · 725 阅读 · 0 评论