Restore Valid IPv4 Addresses

Asked at OpenAI · Coding Questions · Difficulty: Medium

Given a string `s` containing only digits, return all possible valid IPv4 addresses that can be formed from it.

Loading the problem…