Notes
This function is in beta test. Please help improve it in the issues
here.
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Memory Exceeded. And the exit code of your program is -9, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Inserted VE600 with key tuple -1 2 3 Key -6 -2 -10 not found when erasing! Key -3 0 3 not found! Max of dim 0 is VE482 Min of dim 2 is VE281 Max of dim 2 is VE600 Key 5 8 4 not found! Min of dim 2 is VE281 Max of dim 1 is VE600 Key 9 -1 -3 not found when erasing! Key 9 2 -5 not found when erasing! Inserted VE374 with key tuple -9 -5 7 KDTree() deepCopy deepCopy deepCopy deepCopy deepCopy KDTree = deepCopy deepCopy deepCopy deepCopy deepCopy Traversing the tree after assignment operator: VE374 VE281 VE600 VE370 VE482 KDTree = deepCopy deepCopy deepCopy deepCopy deepCopy deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode Inserted VE528 with key tuple 6 7 0 Key 7 6 -1 not found! Inserted VE595 with key tuple 5 -1 2 Key -5 8 -2 not found! Max of dim 0 is VE528 Key 5 3 -8 not found! Min of dim 2 is VE281 Inserted VE542 with key tuple 6 -3 7 Inserted VE473 with key tuple -4 9 0 Key 3 -3 -7 not found when erasing! Inserted VE301 with key tuple 2 -
JOJ Answer
Inserted VE600 with key tuple -1 2 3 Key -6 -2 -10 not found when erasing! Key -3 0 3 not found! Max of dim 0 is VE482 Min of dim 2 is VE281 Max of dim 2 is VE600 Key 5 8 4 not found! Min of dim 2 is VE281 Max of dim 1 is VE600 Key 9 -1 -3 not found when erasing! Key 9 2 -5 not found when erasing! Inserted VE374 with key tuple -9 -5 7 Traversing the tree after assignment operator: VE374 VE281 VE600 VE370 VE482 Inserted VE528 with key tuple 6 7 0 Key 7 6 -1 not found! Inserted VE595 with key tuple 5 -1 2 Key -5 8 -2 not found! Max of dim 0 is VE528 Key 5 3 -8 not found! Min of dim 2 is VE281 Inserted VE542 with key tuple 6 -3 7 Inserted VE473 with key tuple -4 9 0 Key 3 -3 -7 not found when erasing! Inserted VE301 with key tuple 2 -6 -1 Key -3 2 -6 not found! Min of dim 1 is VE301 Inserted VE503 with key tuple -8 -5 8 Key -7 2 -10 not found! Inserted VE478 with key tuple 6 -2 6 Key 5 9 9 not found when erasing! Key 6 -1 0 not found! Key 9 -5 -2 not found when erasing! Inserted VE460 with key tuple -10 5 5 Inse