摘要: import java.util.ArrayList; import java.util.List; /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(i... 阅读全文
posted @ 2016-07-07 21:59 阿怪123 阅读(87) 评论(0) 推荐(0)
摘要: import java.util.Arrays; public class Solution { public boolean isAnagram(String s, String t) { char []arrayS=s.toCharArray(); char []arrayT=t.toCharArray(); ... 阅读全文
posted @ 2016-07-07 15:18 阿怪123 阅读(91) 评论(0) 推荐(0)
摘要: import java.util.*; public class Solution { public List> combinationSum(int[] candidates, int target) { int size=candidates.length; List> res=new ArrayList>(); ... 阅读全文
posted @ 2016-07-07 14:34 阿怪123 阅读(119) 评论(0) 推荐(0)