• + 2 comments

    Hi,

    Here is the video explanation of my solution in **O(n) ** time. I hope it will help you to understand the logic.

    https://www.youtube.com/watch?v=NPMxxSyE7jM&list=PLSIpQf0NbcCltzNFrOJkQ4J4AAjW3TSmA

    Any comments and feedback will be appreciated on my video.