摘要: 题目: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack 阅读全文
posted @ 2016-10-19 17:12 prog123 阅读(175) 评论(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-10-19 16:40 prog123 阅读(187) 评论(0) 推荐(0)
摘要: public class Solution { List> res = new ArrayList>(); public List> threeSum(int[] nums) { if(nums.length 0 && nums[i] == nums[i-1]) continue; ... 阅读全文
posted @ 2016-10-19 16:27 prog123 阅读(188) 评论(0) 推荐(0)