Skip to content

Commit 4e16197

Browse files
refactor 1108
1 parent 4d10895 commit 4e16197

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/main/java/com/fishercoder/solutions/_1108.java

-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 1108. Defanging an IP Address
5-
*
6-
* Given a valid (IPv4) IP address, return a defanged version of that IP address.
7-
* A defanged IP address replaces every period "." with "[.]".
8-
*
9-
* Example 1:
10-
* Input: address = "1.1.1.1"
11-
* Output: "1[.]1[.]1[.]1"
12-
*
13-
* Example 2:
14-
* Input: address = "255.100.50.0"
15-
* Output: "255[.]100[.]50[.]0"
16-
*
17-
* Constraints:
18-
* The given address is a valid IPv4 address.
19-
* */
203
public class _1108 {
214
public static class Solution1 {
225
public String defangIPaddr(String address) {

0 commit comments

Comments
 (0)