We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8da013 commit c84e4b0Copy full SHA for c84e4b0
day34/README.md
@@ -50,5 +50,8 @@ function, it's also using and `O(n)` space.
50
51
## Follow-up
52
53
-
+We can reduce the linear time complexity by iterating over the entire input
54
+string once to find whether the string is an ipv4 or ipv6 candidate, and then
55
+doing the check on the string via iteration without the `.split(".")` or
56
+`.split(":")` calls. The iteration syntax may be a little messy though.
57
0 commit comments