Create README - LeetHub

This commit is contained in:
Deven
2023-01-12 18:54:52 -05:00
parent b031f82d97
commit fa2d098451
+18
View File
@@ -0,0 +1,18 @@
<h2><a href="https://leetcode.com/problems/defanging-an-ip-address/">1108. Defanging an IP Address</a></h2><h3>Easy</h3><hr><div><p>Given a valid (IPv4) IP <code>address</code>, return a defanged version of that IP address.</p>
<p>A <em>defanged&nbsp;IP address</em>&nbsp;replaces every period <code>"."</code> with <code>"[.]"</code>.</p>
<p>&nbsp;</p>
<p><strong class="example">Example 1:</strong></p>
<pre><strong>Input:</strong> address = "1.1.1.1"
<strong>Output:</strong> "1[.]1[.]1[.]1"
</pre><p><strong class="example">Example 2:</strong></p>
<pre><strong>Input:</strong> address = "255.100.50.0"
<strong>Output:</strong> "255[.]100[.]50[.]0"
</pre>
<p>&nbsp;</p>
<p><strong>Constraints:</strong></p>
<ul>
<li>The given <code>address</code> is a valid IPv4 address.</li>
</ul></div>