In Removing the duplicates from linked list I have used map to solve the problem . And it passed all the test cases . Is there any other way to solve the problem or its ok to use map.
There’s an another O(N) Time and O(1) Space solution. Try to not use map and submit this problem. @pradeepku
Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.