We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a2304f commit 86609f6Copy full SHA for 86609f6
Defanging IP Address/EfficientSolution.py
@@ -0,0 +1,23 @@
1
+##==================================
2
+## Leetcode
3
+## Student: Vandit Jyotindra Gajjar
4
+## Year: 2020
5
+## Problem: 1108
6
+## Problem Name: Defanging an IP Address
7
+##===================================
8
+#Given a valid (IPv4) IP address, return a defanged version of that IP address.
9
+#
10
+#A defanged IP address replaces every period "." with "[.]".
11
12
+#Example 1:
13
14
+#Input: address = "1.1.1.1"
15
+#Output: "1[.]1[.]1[.]1"
16
+#Example 2:
17
18
+#Input: address = "255.100.50.0"
19
+#Output: "255[.]100[.]50[.]0"
20
21
+#Constraints:
22
23
+#The given address is a valid IPv4 address.
0 commit comments