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
INSERT Inserted VE341 with key tuple -8 6 6 FIND Key -6 -9 2 not found! INSERT Inserted VE473 with key tuple -7 8 -2 INSERT Inserted VE499 with key tuple 3 4 -9 INSERT Inserted VE561 with key tuple 2 1 -8 INSERT Inserted VE369 with key tuple 1 -7 -3 INSERT Traversing the tree after assignment operator: VE561 ERASE Key 5 -8 -8 not found when erasing! IT FINDMAX Max of dim 1 is VE281 IT FINDMAX Max of dim 2 is VE341 FIND Key -5 -10 3 not found! FIND Key -10 -4 3 not found! IT FINDMIN Min of dim 2 is VE561 FIND Key -1 -10 -1 not found! FIND Key 9 6 -9 not found! INSERT Traversing the tree after assignment operator: VE000 FIND Key 4 7 8 not found! IT FINDMIN Min of dim 2 is VE000 FIND Key 3 -1 4 not found! INSERT Inserted VE502 with key tuple -4 9 5 INSERT Inserted VE364 with key tuple 5 7 -5 IT FINDMAX Max of dim 0 is VE364 INSERT Inserted VE430 with key tuple -8 -4 5 IT FINDMAX Max of dim 1 is VE502 IT FINDMAX Max of dim 2 is VE502 FIND Key 8 -8 -7 not found! INSERT Traversing the tree after assignment operator
JOJ Answer
Inserted VE341 with key tuple -8 6 6 Key -6 -9 2 not found! Inserted VE473 with key tuple -7 8 -2 Inserted VE499 with key tuple 3 4 -9 Inserted VE561 with key tuple 2 1 -8 Inserted VE369 with key tuple 1 -7 -3 Traversing the tree after assignment operator: VE281 VE473 VE341 VE370 VE369 VE482 VE499 VE561 Key 5 -8 -8 not found when erasing! Max of dim 1 is VE473 Max of dim 2 is VE341 Key -5 -10 3 not found! Key -10 -4 3 not found! Min of dim 2 is VE499 Key -1 -10 -1 not found! Key 9 6 -9 not found! Traversing the tree after assignment operator: VE281 VE473 VE341 VE370 VE369 VE482 VE499 VE561 Key 4 7 8 not found! Min of dim 2 is VE499 Key 3 -1 4 not found! Inserted VE502 with key tuple -4 9 5 Inserted VE364 with key tuple 5 7 -5 Max of dim 0 is VE364 Inserted VE430 with key tuple -8 -4 5 Max of dim 1 is VE502 Max of dim 2 is VE341 Key 8 -8 -7 not found! Traversing the tree after assignment operator: VE430 VE281 VE473 VE502 VE341 VE370 VE369 VE482 VE499 VE561 VE364 Key -6 -3 -7 not found when erasing! Inserted VE