MadeStone
CodeWars || int32 to IPv4 || JavaScript || Code Challenge
Описание
Take the following IPv4 address: 128.32.10.1
This address has 4 octets where each octet is a single byte (or 8 bits).
1st octet 128 has the binary representation: 10000000
2nd octet 32 has the binary representation: 00100000
3rd octet 10 has the binary representation: 00001010
4th octet 1 has the binary representation: 00000001
So 128.32.10.1 == 10000000.00100000.00001010.00000001
Because the above IP address has 32 bits, we can represent it as the unsigned 32 bit number: 2149583361
Complete the function that takes an unsigned 32 bit number and returns a string representation of its IPv4 address.
Examples
2149583361 - "128.32.10.1"
32 - "0.0.0.32"
0 - "0.0.0.0"
Рекомендуемые видео

СОВЕТСКИЕ РАЗВЕДЧИКИ УШЛИ В ТЫЛ ВРАГА И ВЫПОЛНИЛИ НЕВОЗМОЖНУЮ МИССИЮ | ВОЕННЫЙ ФИЛЬМ!
85 278 просмотров

ЖЁСТКИЙ ВОЕННЫЙ БОЕВИК НА РЕАЛЬНЫХ СОБЫТИЯХ! НЕПРЕДСКАЗУЕМЫЙ ФИЛЬМ! "Тихий рубеж" НОВИНКИ 2026
63 217 просмотров

Рик и Морти - 9 сезон, 8 серия (2026) / Rick and Morty
60 293 просмотров

100 Дней Выживаем на Поезде в VOIDTRAIN
32 844 просмотров

Серия 15. Декабристы (часть 1). Начало
657 468 просмотров

Неуловимые (2015)
4 843 просмотров

Одиссея | The Odyssey (2026)
2 485 794 просмотров

KING GONG SHOW 2025
17 022 просмотров

В день знаний купили Абдугани подарочек. В кафе зашли порадовать школьника.
36 136 просмотров

Корейская Война. Нерассказанная История.
44 386 просмотров

Шан-Чи и легенда десяти колец | Shang-Chi and the Legend of the Ten Rings (2021)
717 931 просмотров

ИДЕАЛЬНЫЙ ПОЛ ЗА 30 МИНУТ! Строители больше не нужны!
8 785 просмотров

Девушка попала в древность, носила товары из будущего и стала богатой
915 просмотров

Властелины вселенной | Masters of the Universe (2026)
1 174 695 просмотров

VHS DREAMS '88 | 2 Hour Synthwave, Chillwave & Retrowave Mix
2 075 просмотров

Форсаж 9 | F9 (2021,4K)
1 158 556 просмотров

У вас есть 2 миллиона. Что купить в 2026 году? 7 действительно нормальных вариантов
14 870 просмотров