摘要: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: AC code: Runtime: 4 ms, faster tha 阅读全文
posted @ 2018-10-28 21:45 Veritas_des_Liberty 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. Example: AC code: Runtime: 0 ms, faster than 100.00%  阅读全文
posted @ 2018-10-28 21:00 Veritas_des_Liberty 阅读(170) 评论(0) 推荐(0) 编辑
摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given a non-empty strin 阅读全文
posted @ 2018-10-28 17:58 Veritas_des_Liberty 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The solution set must not conta 阅读全文
posted @ 2018-10-28 16:49 Veritas_des_Liberty 阅读(296) 评论(0) 推荐(0) 编辑