Pergunta de entrevista da empresa Huawei Technologies

Programs like remove the duplicate numbers in sorted array by scanning the array only once, means {1,1,2,3,6,8,8,8,8}-->{1,2,3,6,8}, producer and consumer problem, and finding the sum of diagonal elemts in array of any size, etc

Respostas da entrevista

Sigiloso

19 de jan. de 2012

take the elements in array , then look for match up among rest elements, if found then shift 1 position up the rest elements and so on.

Sigiloso

27 de nov. de 2011

for removing the duplicate elements we need to maintain one uniq index.