- 1

Create an algorithm for removing duplicated elements in a 1 dimentional vector

Solve either by block scheme, C language or pseudocode

31st Jan 2022, 11:46 PM
Kai
Kai - avatar
2 Réponses
+ 2
Sort the vector After sorting, For i of vector : If vector[i] ^vector[i+1] == 0 then duplicate Else not duplicate
1st Feb 2022, 5:04 AM
VRVivek
0
Thx
1st Feb 2022, 6:20 AM
Kai
Kai - avatar