摘要:
Bitwise AND of Numbers RangeGiven a range [m, n] where 0 >= 1) lena++; while(b >>= 1) lenb++; if(lena == lenb) { for(int i = m... 阅读全文
posted @ 2015-05-05 18:39
imKirin
阅读(144)
评论(0)
推荐(0)
摘要:
Happy NumberWrite an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any posi... 阅读全文
posted @ 2015-05-05 16:59
imKirin
阅读(109)
评论(0)
推荐(0)
摘要:
Remove Linked List ElementsRemove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6,va... 阅读全文
posted @ 2015-05-05 16:16
imKirin
阅读(92)
评论(0)
推荐(0)
摘要:
Reverse Linked ListReverse a singly linked list.click to show more hints.Have you met this question in a real interview?class Solution{public: ListNo... 阅读全文
posted @ 2015-05-05 10:36
imKirin
阅读(130)
评论(0)
推荐(0)

浙公网安备 33010602011771号