Skip to content

Commit 86609f6

Browse files
committed
Adding Solution for Problem - 1108 - Efficient Solution
1 parent 6a2304f commit 86609f6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)