摘要:
Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?Analyse: Obtain the elements first, ... 阅读全文
posted @ 2015-09-02 03:15
amazingzoe
阅读(128)
评论(0)
推荐(0)
摘要:
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ... 阅读全文
posted @ 2015-09-02 02:39
amazingzoe
阅读(130)
评论(0)
推荐(0)
摘要:
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't mat... 阅读全文
posted @ 2015-09-02 00:32
amazingzoe
阅读(111)
评论(0)
推荐(0)
浙公网安备 33010602011771号