What is the time complexity of finding the closest pair of points in a set of n points using the brute-force algorithm?
O(log n)
O(n^2)
O(n)
O(n log n)

Theory of Computation Übungen werden geladen ...