摘要:
public class Solution { public int findPeakElement(int[] nums) { if (nums == null || nums.length == 0 || nums.length == 1) { retu...
阅读全文
posted @ 2015-05-19 10:53
kikiUr
阅读(106)
推荐(0)
编辑
摘要:
public class Solution { public int findMin(int[] nums) { if (nums == null || nums.length == 0) { return 0; } int re...
阅读全文
posted @ 2015-05-19 10:13
kikiUr
阅读(62)
推荐(0)
编辑
摘要:
public class Solution { public void setZeroes(int[][] matrix) { if (matrix == null || matrix.length == 0 || matrix[0].length == 0) { ...
阅读全文
posted @ 2015-05-19 09:56
kikiUr
阅读(96)
推荐(0)
编辑
摘要:
public class Solution { public TreeNode buildTree(int[] inorder, int[] postorder) { if (inorder == null || postorder == null || inorder.leng...
阅读全文
posted @ 2015-05-19 09:07
kikiUr
阅读(100)
推荐(0)
编辑
摘要:
public class Solution { public TreeNode buildTree(int[] preorder, int[] inorder) { if (preorder == null || inorder == null || preorder.lengt...
阅读全文
posted @ 2015-05-19 08:53
kikiUr
阅读(89)
推荐(0)
编辑
摘要:
public class Solution { public int maxArea(int[] height) { if (height == null || height.length < 2) { return 0; } ...
阅读全文
posted @ 2015-05-19 08:24
kikiUr
阅读(90)
推荐(0)
编辑
摘要:
public class Solution { public ArrayList> threeSum(int[] nums) { ArrayList> res = new ArrayList>(); if (nums == null || nums.length ...
阅读全文
posted @ 2015-05-19 07:32
kikiUr
阅读(76)
推荐(0)
编辑