上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页
摘要: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to ... 阅读全文
posted @ 2015-06-06 18:46 TonyLuis 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 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 nu... 阅读全文
posted @ 2015-06-06 18:32 TonyLuis 阅读(380) 评论(0) 推荐(0) 编辑
摘要: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a... 阅读全文
posted @ 2015-06-06 17:43 TonyLuis 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will return the ne... 阅读全文
posted @ 2015-06-06 11:31 TonyLuis 阅读(499) 评论(0) 推荐(0) 编辑
摘要: Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.解题思路:计算n能达到的5的最大次幂,算出在这种情况... 阅读全文
posted @ 2015-06-06 00:53 TonyLuis 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ->... 阅读全文
posted @ 2015-06-06 00:11 TonyLuis 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the ... 阅读全文
posted @ 2015-06-06 00:06 TonyLuis 阅读(201) 评论(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 -> Z 27 -> AA 28 ... 阅读全文
posted @ 2015-06-05 23:53 TonyLuis 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,... 阅读全文
posted @ 2015-06-05 23:43 TonyLuis 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 num2[i]) return 1; else if(num1[i]<num... 阅读全文
posted @ 2015-06-05 20:45 TonyLuis 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页