上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: Problem:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.Analysis:This problem actually requi... 阅读全文
posted @ 2015-09-02 01:04 airforce 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Problem:Implement pow(x,n).Analysis:This problem inherently is very easy and simple.Don't try to treat a problem as difficult problem, even the myster... 阅读全文
posted @ 2015-09-01 23:52 airforce 阅读(581) 评论(0) 推荐(1) 编辑
摘要: Problem:Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorte... 阅读全文
posted @ 2015-09-01 22:18 airforce 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums... 阅读全文
posted @ 2015-09-01 11:19 airforce 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Problem:Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For exampl... 阅读全文
posted @ 2015-09-01 10:07 airforce 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Problem:Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is l... 阅读全文
posted @ 2015-09-01 09:20 airforce 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Problem:Write a program to find then-th ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For example,1, 2, 3, 4,... 阅读全文
posted @ 2015-09-01 07:45 airforce 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Problem:Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. F... 阅读全文
posted @ 2015-09-01 04:24 airforce 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Problem:Description:Count the number of prime numbers less than a non-negative number,n.Analysis:The idea to test if a number is prime.Reference:https... 阅读全文
posted @ 2015-09-01 03:00 airforce 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Problem:Given an integern, return the number of trailing zeroes inn!.Note:Your solution should be in logarithmic time complexity.Credits:Special thank... 阅读全文
posted @ 2015-08-31 22:23 airforce 阅读(176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页