摘要: 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) 编辑
摘要: Problem:Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 3... 阅读全文
posted @ 2015-08-31 12:31 airforce 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Problem:Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word o... 阅读全文
posted @ 2015-08-31 10:43 airforce 阅读(204) 评论(0) 推荐(0) 编辑