摘要: Given a range [m, n] where 0 = 0 && ((m & (1 << t)) == (n & (1 << t)))) { ans |= m & (1 << t); t--; } retur... 阅读全文
posted @ 2015-04-16 22:34 匡子语 阅读(178) 评论(0) 推荐(0)
摘要: Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl... 阅读全文
posted @ 2015-04-16 22:30 匡子语 阅读(165) 评论(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 yo... 阅读全文
posted @ 2015-04-16 22:29 匡子语 阅读(232) 评论(0) 推荐(0)