Pergunta de entrevista da empresa IBM

Create a program that removes all repeating integers in a LinkedList

Resposta da entrevista

Sigiloso

21 de out. de 2024

Store all values traversed in a HashSet and if a repetition is found by referencing the HashSet, point the node's pointer from node.next to node.next.next