Ad
  • Custom User Avatar

    Closing as this isn't an issue.

  • Custom User Avatar

    I don't think the description means that these IP addresses are invalid across the board. I think it means to consider them invalid for this task, which is perfectly fine. Typically when IP addresses are displayed in any system, they are displayed without leading zeroes. This task is likely trying to recreate that, even if the leading zeros aren't "wrong".

  • Custom User Avatar

    The question seems to misunderstand some IP address concepts. For example, 12.34.56.00 is a valid IP, leading 0s are absolutely fine (although unnecessary), and a few other things. Because of this, I don't think there is any "best practice" for this question and it could be teaching bad practices in terms of IP address validation.