Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 772 Bytes

File metadata and controls

27 lines (15 loc) · 772 Bytes

| English | 简体中文 |

Description

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

A valid IP address consists of exactly four integers (each integer is between 0 and 255) separated by single points.

Example:

Input: "25525511135"
Output: ["255.255.11.135", "255.255.111.35"]

Related Topics

Similar Questions