We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This is a very clean code :) congrats!!
But will it work for all the cases? Coz the problem has only 2 test cases. I'm just curious, that's all :)
Why do use return headA==headB at the end? i guess it works like an if condition?? pls correct me if i'm wrong.
Overall, brilliant thinking!
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Compare two linked lists
You are viewing a single comment's thread. Return to all comments →
This is a very clean code :) congrats!! But will it work for all the cases? Coz the problem has only 2 test cases. I'm just curious, that's all :) Why do use return headA==headB at the end? i guess it works like an if condition?? pls correct me if i'm wrong. Overall, brilliant thinking!