Alwaldend
Docs
Light
Dark
Auto
Docs
Misc
Leetcode submissions
2025-08-02 13:55:22 +0300 MSK
2025-08-02 13:55:22 +0300 MSK
Defanging an IP Address
Tags:
Generated
Leetcode_submission
Links
https://leetcode.com/submissions/detail/1720508833/
Code
class
Solution
:
def
defangIPaddr
(self, address: str)
->
str:
return
address
.
replace(
"."
,
"[.]"
)