You can follow one of these guidelines or just implement O(N^3) version yourself. The last N comes from the linear search using std::nth_element in a neighborhood of N^2.
You can follow one of these guidelines or just implement O(N^3) version yourself. The last N comes from the linear search using std::nth_element in a neighborhood of N^2.