2019-11-10 LeetCode in Rust LeetCode 1108. Defanging an IP Address Problem Statement impl Solution { pub fn defang_i_paddr(address: String) -> String { let mut ans = "".to_string(); for c in address.chars() { if c != '.' { ans.push(c); } else { ans.push_str("[.]"); } } return ans; }} Newer LeetCode 1105. Filling Bookcase Shelves Older LeetCode 1118. Number of Days in a Month