Search
⌘K

Leetcode 1108. Defanging an IP Address

Given a valid IPv4 address string, return its defanged version by replacing every period "." with "[.]". This is a straightforward string-manipulation problem (simple character replacement).

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid May, 2025

Meta

Manager

Comments

Your account is free and you can post anonymously if you choose.