Pergunta de entrevista da empresa Valeo

Write a code in C (on paper! in 2 mins!) to receive an array of different integer values, and produce another array(list) of only the duplicated values in the original array, if a duplicate value is found more than once, the list shall only show one value, order is not important.

Resposta da entrevista

Sigiloso

27 de jun. de 2016

compare the current element to the original array and the new array of duplicated elements. if you find current element is duplicated in the original and its not in the new array , then add it to the new array

1