Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 290 Bytes

File metadata and controls

10 lines (6 loc) · 290 Bytes

Given a string containing only digits, restore it by returning all possible valid IP address combinations.

For example:

Given "25525511135",

return ["255.255.11.135", "255.255.111.35"]. (Order does not matter)

Show Tags Backtracking String