摘要:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the 阅读全文
posted @ 2016-04-15 14:39
lhxandcxy
阅读(90)
评论(0)
推荐(0)
摘要:
Given a linked list, remove the nth node from the end of list and return its head. For example, 思路一: 计算结点总数,可以用龟兔算法得到,然后删除倒数第n个结点 思路二: 先跑到第n+1个结点,然后从第 阅读全文
posted @ 2016-04-15 14:15
lhxandcxy
阅读(90)
评论(0)
推荐(0)
浙公网安备 33010602011771号