leetle

Daily challenge for 2025-05-10

130. Defanging an IP Address

Write a function solve that replaces every period in an IP address with '[.]'.

Example:
Input: "1.1.1.1"
Output: "1[.]1[.]1[.]1"

Run this challenge interactively in Python or JavaScript when the app loads.