摘要: Excel Sheet Column NumberRelated to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column ... 阅读全文
posted @ 2015-06-14 07:14 轻抚离殇 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Excel Sheet Column TitleGiven a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B ... 阅读全文
posted @ 2015-06-14 07:12 轻抚离殇 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Largest NumberGiven a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the larg... 阅读全文
posted @ 2015-06-14 07:07 轻抚离殇 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Majority ElementGiven an array of sizen, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋times.You may ass... 阅读全文
posted @ 2015-06-14 07:02 轻抚离殇 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Word BreakGiven a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.... 阅读全文
posted @ 2015-06-14 06:57 轻抚离殇 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant dig... 阅读全文
posted @ 2015-06-14 06:42 轻抚离殇 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Climbing StairsYou are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct way... 阅读全文
posted @ 2015-06-14 06:39 轻抚离殇 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.python code:class Solution: # @par... 阅读全文
posted @ 2015-06-14 06:35 轻抚离殇 阅读(270) 评论(0) 推荐(0) 编辑
摘要: Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single one.python code:class Solution: # @param {integ... 阅读全文
posted @ 2015-06-14 06:32 轻抚离殇 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Intersection of Two Linked ListsWrite a program to find the node at which the intersection of two singly linked lists begins.For example, the followin... 阅读全文
posted @ 2015-06-14 06:25 轻抚离殇 阅读(538) 评论(0) 推荐(0) 编辑
摘要: Find Peak ElementA 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 ... 阅读全文
posted @ 2015-06-14 06:16 轻抚离殇 阅读(191) 评论(0) 推荐(0) 编辑