2015年4月5日
摘要: 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-04-05 23:02 黄瓜小肥皂 阅读(218) 评论(0) 推荐(0) 编辑
摘要: Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example:A -> 1... 阅读全文
posted @ 2015-04-05 18:15 黄瓜小肥皂 阅读(153) 评论(0) 推荐(0) 编辑
摘要: I:Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transactio... 阅读全文
posted @ 2015-04-05 16:59 黄瓜小肥皂 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an... 阅读全文
posted @ 2015-04-05 00:32 黄瓜小肥皂 阅读(149) 评论(0) 推荐(0) 编辑