摘要: public class Solution { public int myAtoi(String str) { str=str.trim(); int size=str.length(); if(str==null||size==0) return 0; double res=0; b... 阅读全文
posted @ 2016-08-03 21:30 阿怪123 阅读(127) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public String convert(String s, int numRows) { if(s.equals("")) return ""; if(numRows==1) return s; String res=""; ... 阅读全文
posted @ 2016-08-03 16:05 阿怪123 阅读(102) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public int[] twoSum(int[] nums, int target) { int [] res=new int[2]; int size=nums.length; boolean isGot=false; int i=0; int j=0; ... 阅读全文
posted @ 2016-08-03 15:40 阿怪123 阅读(118) 评论(0) 推荐(0) 编辑