---
title: "Discussion on \"Restore IP Addresses\" | Hashnode"
description: "Discussion on \"Restore IP Addresses\". Explain the Problem\nGiven a string containing only digits, return all possible valid IP addresses that can be obtained by inserting dots into the string. You can return the answer in any order.\nA valid IP address consists of exactly four integers (ea..."
url: "https://hashnode.com/posts/restore-ip-addresses/667ce6e3da991fb560866229"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Restore IP Addresses](https://lietcode.hashnode.dev/restore-ip-addresses?utm_source=hashnode&utm_medium=feed)

Explain the Problem Given a string containing only digits, return all possible valid IP addresses that can be obtained by inserting dots into the string. You can return the answer in any order. A valid IP address consists of exactly four integers (ea...

Jun 27, 2024 · 4 min read · lietcode.hashnode.dev  
Read the article

-   [#backtracking](https://hashnode.com/tag/backtracking)

## Written by

[Abhi](https://hashnode.com/@lietcode)

@lietcode

  
[View profile](https://hashnode.com/@lietcode)

Let's crack the interviews

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
