摘要:
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes... 阅读全文
posted @ 2015-03-09 20:33
A_zhu
阅读(189)
评论(0)
推荐(0)
摘要:
Compare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1#include using namespace std;class Solution {public: int comp... 阅读全文
posted @ 2015-03-09 16:11
A_zhu
阅读(334)
评论(0)
推荐(0)
摘要:
Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 ->... 阅读全文
posted @ 2015-03-09 15:38
A_zhu
阅读(126)
评论(0)
推荐(0)
摘要:
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 that the arr... 阅读全文
posted @ 2015-03-09 14:37
A_zhu
阅读(134)
评论(0)
推荐(0)
摘要:
Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ... 阅读全文
posted @ 2015-03-09 14:23
A_zhu
阅读(128)
评论(0)
推荐(0)
摘要:
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ... 阅读全文
posted @ 2015-03-09 14:13
A_zhu
阅读(2290)
评论(0)
推荐(0)

浙公网安备 33010602011771号