摘要:
122. 买卖股票的最佳时机 II class Solution { public int maxProfit(int[] prices) { if (prices.length == 1) { return 0; } int interest = 0; int pre = 0, count = 0 阅读全文
posted @ 2023-01-13 15:57
维萨斯
阅读(19)
评论(0)
推荐(0)
摘要:
455. 分发饼干 public int findContentChildren(int[] g, int[] s) { Arrays.sort(g); Arrays.sort(s); int biscuit = 0, hunger = 0; for (biscuit = 0; biscuit < 阅读全文
posted @ 2023-01-13 01:18
维萨斯
阅读(12)
评论(0)
推荐(0)
摘要:
二刷见了 阅读全文
posted @ 2023-01-13 01:14
维萨斯
阅读(9)
评论(0)
推荐(0)
摘要:
491. 递增子序列 LinkedList<Integer> path = new LinkedList<>(); List<List<Integer>> result = new ArrayList<>(); public List<List<Integer>> findSubsequences( 阅读全文
posted @ 2023-01-13 01:12
维萨斯
阅读(17)
评论(0)
推荐(0)