K-d tree: Difference between revisions

m
Line 225:
=={{header|C++}}==
This code is based on the C version. A significant difference is the use of the standard library function nth_element, which replaces the find_median function in the C version.
<lang cpp>#include <algorithm>
 
<lang cpp>
#include <algorithm>
#include <array>
#include <vector>
Line 525 ⟶ 523:
 
return 0;
}</lang cpp>
}
</lang>
 
{{out}}
1,777

edits