We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d10895 commit 4e16197Copy full SHA for 4e16197
src/main/java/com/fishercoder/solutions/_1108.java
@@ -1,22 +1,5 @@
1
package com.fishercoder.solutions;
2
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
- * */
20
public class _1108 {
21
public static class Solution1 {
22
public String defangIPaddr(String address) {
0 commit comments