摘要: 题目: Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135", return 阅读全文
posted @ 2017-06-05 10:56 panini 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 题目: Reverse a linked list from position m to n. Do it in-place and in one-pass. For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3 阅读全文
posted @ 2017-06-05 07:39 panini 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 题目: A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determi 阅读全文
posted @ 2017-06-05 06:54 panini 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题目: The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total 阅读全文
posted @ 2017-06-05 01:09 panini 阅读(145) 评论(0) 推荐(0) 编辑