How to solve algorithm problem in short tricks?
Answers
Answered by
1
One solution to this problem consists of two steps. First, sort the array. When an array is sorted, duplicate elements will be next to each other. Second, loop through the array and remove or ignore values that are equal to the previous values
Similar questions