导航

2016年9月18日

摘要: Write a function to find the longest common prefix string amongst an array of strings. 让我们在一个字符串中找出所有字符串的共同前缀 阅读全文

posted @ 2016-09-18 23:39 CSU蛋李 阅读(108) 评论(0) 推荐(0) 编辑

摘要: Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this in on 阅读全文

posted @ 2016-09-18 23:18 CSU蛋李 阅读(128) 评论(0) 推荐(0) 编辑

摘要: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文

posted @ 2016-09-18 17:18 CSU蛋李 阅读(113) 评论(0) 推荐(0) 编辑

摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 没什么好说的,把 阅读全文

posted @ 2016-09-18 16:52 CSU蛋李 阅读(87) 评论(0) 推荐(0) 编辑

摘要: Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Your a 阅读全文

posted @ 2016-09-18 16:39 CSU蛋李 阅读(89) 评论(0) 推荐(0) 编辑

摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文

posted @ 2016-09-18 16:10 CSU蛋李 阅读(116) 评论(0) 推荐(0) 编辑