2015年5月5日
摘要: Reverse a singly linked list.click to show more hints.Hint:A linked list can be reversed either iteratively or recursively. Could you implement both? ... 阅读全文
posted @ 2015-05-05 15:02 黄瓜小肥皂 阅读(147) 评论(0) 推荐(0) 编辑
摘要: A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its index.... 阅读全文
posted @ 2015-05-05 08:46 黄瓜小肥皂 阅读(137) 评论(0) 推荐(0) 编辑