2015年3月25日

Number of 1 Bits

摘要: 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 32-bit in... 阅读全文

posted @ 2015-03-25 16:01 Step-BY-Step 阅读(154) 评论(0) 推荐(0) 编辑

Best Time to Buy and Sell Stock IV

摘要: Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a... 阅读全文

posted @ 2015-03-25 14:42 Step-BY-Step 阅读(243) 评论(0) 推荐(0) 编辑

导航