Validate IP Address | LeetCode 468 | C++, Java, Python



LeetCode Solutions: https://www.youtube.com/playlist?list=PL1w8k37X_6L86f3PUUVFoGYXvZiZHde1S
June LeetCoding Challenge: https://www.youtube.com/playlist?list=PL1w8k37X_6L8UozNtBsv_znl2ZQ9YSdT8
May LeetCoding Challenge: https://www.youtube.com/playlist?list=PL1w8k37X_6L8xh476yG6UNfXBCT1tq2vM

**** Best Books For Data Structures & Algorithms for Interviews:**********
1. Cracking the Coding Interview: https://amzn.to/2WeO3eO
2. Cracking the Coding Interview Paperback: https://amzn.to/3aSSe3Q
3. Coding Interview Questions – Narasimha Karumanchi: https://amzn.to/3cYqjkV
4. Data Structures and Algorithms Made Easy – N. Karumanchi: https://amzn.to/2U8FrDt
5. Data Structures & Algorithms made Easy in Java – N. Karumanchi: https://amzn.to/2U0qZgY
6. Introduction to Algorithms – CLR – Cormen, Leiserson, Rivest: https://amzn.to/2Wdp8rZ
*****************************************************************************

June LeetCoding Challenge | Problem 16 | Validate IP Address | 16 June,
Facebook Coding Interview question,
google coding interview question,
leetcode,
Validate IP Address,
Validate IP Address c++,
Validate IP Address Java,
Validate IP Address python,
Validate IP Address solution,
468. Validate IP Address,

#Facebook #CodingInterview #LeetCode #JuneLeetCodingChallenge #Google #Amazon #IPAddress #IPv4 #IPv6

source
ip address

Avatar

Alice AUSTIN

Alice AUSTIN is studying Cisco Systems Engineering. He has passion with both hardware and software and writes articles and reviews for many IT websites.

12 thoughts on “Validate IP Address | LeetCode 468 | C++, Java, Python

  • Avatar
    September 29, 2020 at 10:41 am
    Permalink

    Sir can you explain that edge case of string stream at 13:58? I am not getting it. I had almost solved it but that corner case was only missing

    Reply
  • Avatar
    September 29, 2020 at 10:41 am
    Permalink

    in Ipv4 check why did we use "\." in split function and not "\:" in Ipv6? and why -1 as a parameter in split() function? can you pls explain sir.

    Reply
  • Avatar
    September 29, 2020 at 10:41 am
    Permalink

    Thanks for the explanation, sir!
    I want to connect you on LinkedIn.

    Reply
  • Avatar
    September 29, 2020 at 10:41 am
    Permalink

    Thanks you so much for awesome explanation. I got stuck in validating Hexadecimal digits. Now I am clear.

    Reply
  • Avatar
    September 29, 2020 at 10:41 am
    Permalink

    Thank you so much. It will be good to have live session on weekends if possible. Can you please share a video on how to study DS and Algo?

    Reply
  • Avatar
    September 29, 2020 at 10:41 am
    Permalink

    Regex for the problem: ipv4Regex = /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;
    ipv6Regex = /^([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}$/;

    Reply

Leave a Reply