2015年5月13日

21. Merge Two Sorted Lists

摘要: 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.经典实现题。/**... 阅读全文

posted @ 2015-05-13 08:24 shini 阅读(78) 评论(0) 推荐(0) 编辑

20. Valid Parentheses

摘要: Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ... 阅读全文

posted @ 2015-05-13 08:20 shini 阅读(122) 评论(0) 推荐(0) 编辑

19. Remove Nth Node From End of List

摘要: Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After re... 阅读全文

posted @ 2015-05-13 08:09 shini 阅读(107) 评论(0) 推荐(0) 编辑

17. Letter Combinations of a Phone Number

摘要: Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon... 阅读全文

posted @ 2015-05-13 05:06 shini 阅读(104) 评论(0) 推荐(0) 编辑

导航