How to get indexes of duplicates by parameters with O(n) in Swift? – Ios swift
I need to find duplicates by rounded coordinates and store the indices, then remove elements from the original array by these indices. How can I do this with O(n) ? func removeDuplicate(from points: [Point]) -> [Point] { var originalPoints: [Point]…