Given a string containing only digits, restore it by returning all possible valid IP address combinations.
Example
Input: “25525511135”
Output: [“255.255.11.135”, “255.255.111.35”]
Code
1 | public List<String> restoreIpAddresses(String s) { |
写BUG的程序猿
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
Input: “25525511135”
Output: [“255.255.11.135”, “255.255.111.35”]
1 | public List<String> restoreIpAddresses(String s) { |