2013年7月1日
摘要: 1 public class Solution { 2 public double pow(double x, int n) { 3 // Start typing your Java solution below 4 // DO NOT write main() function 5 double result = 1.0; 6 if (n >= 0) 7 return cal(x, n); 8 else 9 {10 n = -1 * n;... 阅读全文
posted @ 2013-07-01 10:58 leiatpku 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1 public class Solution { 2 public int[] twoSum(int[] numbers, int target) { 3 // Start typing your Java solution below 4 // DO NOT write main() function 5 int result[] = new int[2]; 6 int tags = 0; 7 for (int i = 0; i < numbers.length && tags == 0; i++) ... 阅读全文
posted @ 2013-07-01 10:28 leiatpku 阅读(156) 评论(0) 推荐(0) 编辑