Restore IP Addresses
Restore IP Addresses
Given a string s containing only digits, insert exactly three dots to split it into four parts and return every possible valid IPv4 address.
Each IPv4 segment must:
- Be a...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
