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 clean solution and works for this specific situation. My only concern is that it changes values on the list itself. Recursion is the better solution because of this.
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 clean solution and works for this specific situation. My only concern is that it changes values on the list itself. Recursion is the better solution because of this.