摘要:
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... 阅读全文
2015年2月27日
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... 阅读全文
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... 阅读全文
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... 阅读全文
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... 阅读全文
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... 阅读全文
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... 阅读全文
摘要:
1 题目:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... ... 阅读全文