Sunday, February 14, 2021

Leetcode Everyday: 1108. Defanging an IP Address. Easy

public class Solution {
    public string DefangIPaddr(string address) {
        return address.Replace(".", "[.]");
    }
}
Source: https://leetcode.com/problems/defanging-an-ip-address/

No comments:

Post a Comment