Available question text
Determine whether a string is a valid IPv4 (four dot-separated decimal octets 0–255 with no leading zeros) or IPv6 (eight colon-separated groups of 1–4 hexadecimal digits, case-insensitive) address, and return "IPv4", "IPv6", or "Neither".
Related questions
Continue with questions that share topics or the same question type.
- Defanging an IP Address
Coding
- Implement IP Address Arithmetic
Coding
- IP Address Block List
Coding
- IPv4 Address Iterator
Coding · Data Structure Design · Networking
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 468. Validate IP Address
Reported Dec 5, 2025 · 2 source reports
MID_LEVEL
Source snapshot: Nov 12, 2026
View source