摘要:
class Solution { public int coinChange(int[] coins, int amount) { int[] dp = new int[amount+1]; for(int i = 0; i < dp.length; i++) dp[i] = amount+1; / 阅读全文
摘要:
public int[] dailyTemperatures(int[] temperatures) { int len = temperatures.length; LinkedList<Integer>[] table = new LinkedList[101]; for(int i = 30; 阅读全文
摘要:
class Solution { public boolean isAnagram(String s, String t) { if (s.length() != t.length()) { return false; } int[] table = new int[26]; for (int i 阅读全文
摘要:
public List<Integer> inorderTraversal(TreeNode root) { List<Integer> res = new ArrayList<Integer>(); inorder(root, res); return res; } public void ino 阅读全文
摘要:
public int[] dailyTemperatures(int[] temperatures) { int len = temperatures.length; LinkedList<Integer>[] table = new LinkedList[101]; for(int i = 30; 阅读全文