摘要: public class Solution { public int strStr(String haystack, String needle) { if(haystack.equals("")&&needle.equals("")) return 0; int size1=haystack.length(); i... 阅读全文
posted @ 2016-08-10 21:01 阿怪123 阅读(105) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public int removeDuplicates(int[] nums) { int size=nums.length; int last=0; boolean isHead=true; int lastIndex=0; for(int i=0;i<siz... 阅读全文
posted @ 2016-08-10 20:47 阿怪123 阅读(118) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Solution { public List> threeSum(int[] nums) { int size=nums.length; List> res=new ArrayL... 阅读全文
posted @ 2016-08-10 20:34 阿怪123 阅读(113) 评论(0) 推荐(0) 编辑