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
Min of dim 2 is VE281 Max of dim 1 is VE281 Key -5 9 0 not found when erasing! Min of dim 2 is VE281 Min of dim 0 is VE281 Min of dim 1 is VE482 Key -1 2 9 not found! Key -4 -5 -7 not found! Inserted VE479 with key tuple -10 -1 9 Key 7 6 -6 not found! Min of dim 2 is VE281 Key -9 1 6 not found! Max of dim 1 is VE281 Max of dim 2 is VE479 Inserted VE319 with key tuple -1 -10 -4 Max of dim 1 is VE281 KDTree() deepCopy deepCopy deepCopy deepCopy deepCopy KDTree = deepCopy deepCopy deepCopy deepCopy deepCopy Traversing the tree after assignment operator: VE319 VE479 VE281 VE370 VE482 KDTree = deepCopy deepCopy deepCopy deepCopy deepCopy deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode deleteNode Key -8 -2 -3 not found! KDTree() deepCopy deepCopy deepCopy deepCopy deepCopy KDTree = deepCopy deepCopy deepCopy deepCopy deepCopy Traversing the tree after assignment operator: VE319 VE479 VE281 VE370 VE482 KDTree = deepCopy deepCopy deepCopy deepCopy deepCopy
JOJ Answer
Min of dim 2 is VE281 Max of dim 1 is VE281 Key -5 9 0 not found when erasing! Min of dim 2 is VE281 Min of dim 0 is VE281 Min of dim 1 is VE482 Key -1 2 9 not found! Key -4 -5 -7 not found! Inserted VE479 with key tuple -10 -1 9 Key 7 6 -6 not found! Min of dim 2 is VE281 Key -9 1 6 not found! Max of dim 1 is VE281 Max of dim 2 is VE479 Inserted VE319 with key tuple -1 -10 -4 Max of dim 1 is VE281 Traversing the tree after assignment operator: VE319 VE479 VE281 VE370 VE482 Key -8 -2 -3 not found! Traversing the tree after assignment operator: VE319 VE479 VE281 VE370 VE482 Inserted VE384 with key tuple -1 -2 9 Key -8 2 2 not found! Key 0 -5 6 not found when erasing! Inserted VE527 with key tuple -2 5 3 Inserted VE600 with key tuple -4 6 -2 Inserted VE340 with key tuple -5 -1 1 Traversing the tree after assignment operator: VE340 VE319 VE479 VE384 VE281 VE600 VE527 VE370 VE482 Key -7 -9 9 not found! Inserted VE496 with key tuple 0 -2 -1 Max of dim 2 is VE384 Key 8 -5 4 not found! Key -6 -6 -3 not found when er