摘要:
解题思路 硬模拟 代码 class Solution { public boolean lemonadeChange(int[] bills) { HashMap<Integer, Integer> m = new HashMap<>(); m.put(5, 0); m.put(10, 0); m. 阅读全文
摘要:
解题思路 利用两个队列来模拟循环队列 代码 class Solution { public String predictPartyVictory(String s) { Deque<Integer> r = new ArrayDeque<>(); Deque<Integer> d = new Arr 阅读全文