Apply a global string replacement from each dot to the required defanged token.
complexity
O(n) time and O(n) output space.
solution files
- Go
defanging-an-ip-address/solution.go - Python
defanging-an-ip-address/solution.py - TypeScript
defanging-an-ip-address/solution.ts