摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135",return ["25... 阅读全文
posted @ 2014-11-15 23:33 LiBlog 阅读(122) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message con... 阅读全文
posted @ 2014-11-15 08:39 LiBlog 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.... 阅读全文
posted @ 2014-11-15 06:56 LiBlog 阅读(147) 评论(0) 推荐(0) 编辑
摘要: '?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching should cover the entire input stri... 阅读全文
posted @ 2014-11-15 06:17 LiBlog 阅读(270) 评论(0) 推荐(0) 编辑