摘要: Given a positive integer num, write a function which returns True if num is a perfect square else False.Note: Do not use any built-in library function such as sqrt.Example 1:Input: 16 Returns: True Ex... 阅读全文
posted @ 2017-02-19 22:21 xiejunzhao 阅读(214) 评论(0) 推荐(0)
摘要: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent house... 阅读全文
posted @ 2017-02-19 00:30 xiejunzhao 阅读(160) 评论(0) 推荐(0)