摘要: Given an integer, write a function to determine if it is a power of two.Analyse:***Notice that if a number is a power of 2, then the highest binary di... 阅读全文
posted @ 2015-08-29 06:10 amazingzoe 阅读(163) 评论(0) 推荐(0)
摘要: Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is1 -> 2 -> 3 -> ... 阅读全文
posted @ 2015-08-29 05:55 amazingzoe 阅读(107) 评论(0) 推荐(0)