Available question text
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).
Related questions
Continue with questions that share topics or the same question type.
- Implement IP Address Arithmetic
Coding
- IP Address Block List
Coding
- IPv4 Address Iterator
Coding · Data Structure Design · Networking
- Validate IP Address
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 1108. Defanging an IP Address
Reported May 14, 2025 · 1 source report
MANAGER
Source snapshot: Nov 12, 2026
View source