Restore IP Addresses Problem
Restore IP Addresses Problem — ExecCode Medium DSA Practice
Solve the Restore IP Addresses problem on ExecCode. Free online medium DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
Restore IP Addresses. 1-3 digit segments 0-255. For Restore IP Addresses, focus on the exact input variables, return only the requested value, and preserve the required time complexity for the intended pattern.
Examples
Input s = "25525511135"; Output ["255.255.11.135", "255.255.111.35"]
Constraints
1 ≤ n ≤ 10^5
Practice Restore IP Addresses free on ExecCode. Browse DSA problems, topic map, and placement guides.