feat: 1108_defanging_an_ip_address

This commit is contained in:
SquidSpirit 2025-08-19 22:28:56 +08:00
parent d6c8702c7a
commit 846eaa9521
3 changed files with 20 additions and 0 deletions

7
1108_defanging_an_ip_address/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "defanging_an_ip_address"
version = "0.1.0"

View File

@ -0,0 +1,6 @@
[package]
name = "defanging_an_ip_address"
version = "0.1.0"
edition = "2024"
[dependencies]

View File

@ -0,0 +1,7 @@
pub struct Solution;
impl Solution {
pub fn defang_i_paddr(address: String) -> String {
address.replace(".", "[.]")
}
}