摘要:
题目描述:Reverse a singly linked list.解题思路:使用递归或者迭代的方法。代码如下:方法一:递归/** * Definition for singly-linked list. * public class ListNode { * int val; * ... 阅读全文
posted @ 2015-12-28 13:24
scottwang
阅读(175)
评论(0)
推荐(0)
摘要:
题目描述:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-b... 阅读全文
posted @ 2015-12-28 12:32
scottwang
阅读(311)
评论(0)
推荐(0)
浙公网安备 33010602011771号