2015年2月27日

摘要: 1 题目There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following r... 阅读全文
posted @ 2015-02-27 22:52 聆听V风声 阅读(170) 评论(0) 推荐(0) 编辑

2015年2月12日

摘要: 1 题目Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Rem... 阅读全文
posted @ 2015-02-12 21:36 聆听V风声 阅读(143) 评论(0) 推荐(0) 编辑

2015年2月9日

摘要: 1 题目There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should... 阅读全文
posted @ 2015-02-09 21:55 聆听V风声 阅读(148) 评论(0) 推荐(0) 编辑

2015年2月8日

摘要: 1 题目Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed... 阅读全文
posted @ 2015-02-08 23:02 聆听V风声 阅读(148) 评论(0) 推荐(0) 编辑

2015年1月17日

摘要: 1 题目Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the t... 阅读全文
posted @ 2015-01-17 10:47 聆听V风声 阅读(140) 评论(0) 推荐(0) 编辑

2015年1月12日

摘要: 1题目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 return its ind... 阅读全文
posted @ 2015-01-12 22:03 聆听V风声 阅读(136) 评论(0) 推荐(0) 编辑

2014年12月24日

摘要: 1 题目描述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 t... 阅读全文
posted @ 2014-12-24 17:19 聆听V风声 阅读(106) 评论(0) 推荐(0) 编辑
 
摘要: 1 题目:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... ... 阅读全文
posted @ 2014-12-24 17:00 聆听V风声 阅读(156) 评论(0) 推荐(0) 编辑