1108. Defanging an IP Address
On This Page
class Solution:
def defangIPaddr(self, address: str) -> str:
return address.replace('.', '[.]')
class Solution:
def defangIPaddr(self, address: str) -> str:
return address.replace('.', '[.]')