2014年8月6日

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 @ 2014-08-06 13:45 Step-BY-Step 阅读(140) 评论(0) 推荐(0) 编辑

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 @ 2014-08-06 13:37 Step-BY-Step 阅读(130) 评论(0) 推荐(0) 编辑

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 @ 2014-08-06 10:51 Step-BY-Step 阅读(114) 评论(0) 推荐(0) 编辑

Merge k Sorted Lists

摘要: Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.第一遍: 1 public class Solution { 2 public ListNode m... 阅读全文

posted @ 2014-08-06 10:29 Step-BY-Step 阅读(141) 评论(0) 推荐(0) 编辑

导航