2015年1月3日

Factorial Trailing Zeroes (Divide-and-Conquer)

摘要: QUESTIONGiven an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.FIRST TRYclass Sol... 阅读全文

posted @ 2015-01-03 19:21 joannae 阅读(216) 评论(0) 推荐(0) 编辑

Excel Sheet Column Number(STRING-TYPE CONVERTION)

摘要: QUESTIONRelated to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For examp... 阅读全文

posted @ 2015-01-03 17:06 joannae 阅读(156) 评论(0) 推荐(0) 编辑

Majority Element(ARRAY-BINARY SEARCH)

摘要: QUESTIONGiven 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 t... 阅读全文

posted @ 2015-01-03 10:47 joannae 阅读(148) 评论(0) 推荐(0) 编辑

Excel Sheet Column Title (STRING - TYPE CONVERTION)

摘要: QUESTIONGiven a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... ... 阅读全文

posted @ 2015-01-03 07:34 joannae 阅读(202) 评论(0) 推荐(0) 编辑

导航