문제

Just wondering about the minimum character count of an IPv4 / IPv6 address in string representation. What's the shortest valid IP address?

도움이 되었습니까?

해결책

1.1.1.1 would be a valid IP address, so the answer to your question is "7".

다른 팁

Technically, you can omit the first three octects if the are 0, therefore shortest ipv4 address is one byte, it is "1", a shorthand for "0.0.0.1".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top