K-d tree: Difference between revisions

m
→‎{{header|C}}: NULL instead of 0 when dealing with pointers
m (→‎{{header|Tcl}}: Corrections to what's reported after reading task again; note relationship to Python version)
m (→‎{{header|C}}: NULL instead of 0 when dealing with pointers)
Line 49:
find_median(struct kd_node_t *start, struct kd_node_t *end, int idx)
{
if (end <= start) return 0NULL;
if (end == start + 1)
return start;
Anonymous user