摘要:
Description:Given an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may assume ... 阅读全文
posted @ 2015-06-22 10:53
Rosanne
阅读(223)
评论(0)
推荐(0)
摘要:
Description:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 阅读全文
posted @ 2015-06-22 10:23
Rosanne
阅读(148)
评论(0)
推荐(0)
摘要:
Description:A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and retur... 阅读全文
posted @ 2015-06-22 10:11
Rosanne
阅读(195)
评论(0)
推荐(0)
摘要:
Description:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A... 阅读全文
posted @ 2015-06-22 09:48
Rosanne
阅读(171)
评论(0)
推荐(0)
摘要:
Description:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop(... 阅读全文
posted @ 2015-06-22 09:42
Rosanne
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号