摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 题目大意: 给定一个字符串,返回可能的ip列表 解法: 采用dfs方 阅读全文
posted @ 2019-04-09 14:46 小白兔云 阅读(121) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ 阅读全文
posted @ 2019-04-09 14:39 小白兔云 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the 阅读全文
posted @ 2019-04-09 14:24 小白兔云 阅读(123) 评论(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 numb 阅读全文
posted @ 2019-04-09 10:14 小白兔云 阅读(137) 评论(0) 推荐(0) 编辑