+ 1
Remove all duplicates in array.
remove all duplicate numbers in an array test input: {1,2,2,3,3,3,4,4,4,4,5,5,5,5,5} output: 12345
2 Answers
+ 1
Insert all into a Set and then convert into an array!
remove all duplicate numbers in an array test input: {1,2,2,3,3,3,4,4,4,4,5,5,5,5,5} output: 12345