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.
You're not supposed to compare the addresses because who knows if the linked lists are placed on different heaps of different pages in the memory. This is not a good solution.
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 →
You're not supposed to compare the addresses because who knows if the linked lists are placed on different heaps of different pages in the memory. This is not a good solution.