摘要: 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... 阅读全文
posted @ 2015-04-11 23:04 Pickle 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-04-11 22:31 Pickle 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2015-04-11 11:33 Pickle 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 题意:给一个数按位存放在一个int数组中,要求返回这个数加一后的数组。 懒人解法:public class Solution { public int[] plusOne(int[] digits) { java.math.BigInteger Bigdigits = new jav... 阅读全文
posted @ 2015-04-11 11:12 Pickle 阅读(198) 评论(0) 推荐(0) 编辑