摘要:
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 1->1->2->3->3, return 1->2->3.移除单链表中重复的节点public class Solution { ... 阅读全文
posted @ 2017-01-14 12:04
xiejunzhao
阅读(161)
评论(0)
推荐(0)
摘要:
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 ways can you climb to the top?假设你在爬一个楼梯,该楼梯有n阶,你有两种爬法,每次爬一阶或者两阶。请问... 阅读全文
posted @ 2017-01-14 11:56
xiejunzhao
阅读(28)
评论(0)
推荐(0)
摘要:
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.Note:The given integer is guaranteed to fit within the range of a 32-bi... 阅读全文
posted @ 2017-01-14 11:56
xiejunzhao
阅读(161)
评论(0)
推荐(0)

浙公网安备 33010602011771号