摘要:
Description: Given two sorted integer arrays A and B, merge B into A as one sorted array. Note: You may assume that A has enough space (siz... 阅读全文
摘要:
Description:Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given... 阅读全文
摘要:
Description: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct wa... 阅读全文
摘要:
题意:给一个数按位存放在一个int数组中,要求返回这个数加一后的数组。 懒人解法:public class Solution { public int[] plusOne(int[] digits) { java.math.BigInteger Bigdigits = new jav... 阅读全文