How to efficiently remove duplicates from an array without using Set
Since this question is still getting a lot of attention, I decided to answer it by copying this answer from Code Review.SE: You’re following the same philosophy as the bubble sort, which is very, very, very slow. Have you tried this?: Sort your unordered array with quicksort. Quicksort is much faster than bubble sort (I know, you … Read more