摘要: Given an integer, write a function to determine if it is a power of two. Credits:Special thanks to @jianchao.li.fighter for adding this problem and cr 阅读全文
posted @ 2016-04-21 15:20 Miller1991 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Subscrib 阅读全文
posted @ 2016-04-21 15:15 Miller1991 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, 阅读全文
posted @ 2016-04-21 15:03 Miller1991 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Reverse a singly linked list. click to show more hints. Hint: A linked list can be reversed either iteratively or recursively. Could you implement bot 阅读全文
posted @ 2016-04-21 14:16 Miller1991 阅读(120) 评论(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 a 阅读全文
posted @ 2016-04-21 11:48 Miller1991 阅读(95) 评论(0) 推荐(0) 编辑