You can use hashing technique to remove duplicate elements from a linked list. For this, you traverse through the list and check if this element is already existing in the hash table or not; if yes, remove the node else, and push the node to the hash table. To implement this, you can create a set in order to create a track of the visited elements, then traverse through the list and check for each node if it's present in the hashset or not and do accordingly.