摘要:
代码:class MyQueue { // Push element x to the back of queue. Stack stack = new Stack(); Stack aux = new Stack(); public void push(int x) { ... 阅读全文
摘要:
Two's complement of integer:https://zh.wikipedia.org/wiki/%E4%BA%8C%E8%A3%9C%E6%95%B8Bit Manipulation:https://docs.oracle.com/javase/tutorial/java/nut... 阅读全文
摘要:
Functions of StringBuilder:代码:public class Solution { public List summaryRanges(int[] nums) { List list = new ArrayList(); if(nums.le... 阅读全文