摘要:
Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 -- 阅读全文
posted @ 2017-07-06 15:42
无惧风云
阅读(130)
评论(0)
推荐(0)
摘要:
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? 阅读全文
posted @ 2017-07-06 10:23
无惧风云
阅读(130)
评论(0)
推荐(0)
摘要:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文
posted @ 2017-07-06 09:52
无惧风云
阅读(121)
评论(0)
推荐(0)
浙公网安备 33010602011771号