IP Address Restoration in Kotlinby@okyrcheuskaya
165 reads

IP Address Restoration in Kotlin

by Volha Kurcheuskay4mJanuary 23rd, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This post is about providing a solution in Kotlin for finding all valid IP addresses that can be formed by inserting dots into a given string of digits. The solution uses a combination of nested loops and a helper function to check the validity of IP address parts. It's important to note that this algorithm is a brute force solution that generates all possible combinations of positions to insert dots and check if they are valid.
featured image - IP Address Restoration in Kotlin
Volha Kurcheuskay HackerNoon profile picture
Volha Kurcheuskay

Volha Kurcheuskay

@okyrcheuskaya

Android developer

Share Your Thoughts

About Author

Volha Kurcheuskay HackerNoon profile picture
Volha Kurcheuskay@okyrcheuskaya
Android developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!