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 VE377 with key tuple 0 -8 4 ERASE Key -2 0 6 not found when erasing! FIND Key -10 0 6 not found! INSERT Inserted VE501 with key tuple 7 1 5 FIND Key -10 5 0 not found! INSERT Inserted VE372 with key tuple -1 7 7 INSERT Traversing the tree after assignment operator: VE370 INSERT Traversing the tree after assignment operator: VE370 INSERT Inserted VE292 with key tuple -6 9 2 IT FINDMAX Max of dim 1 is VE292 INSERT Traversing the tree after assignment operator: VE370 INSERT Traversing the tree after assignment operator: VE370 ERASE Key 1 1 -10 not found when erasing! FIND Key -5 -3 0 not found! IT FINDMIN Min of dim 0 is VE370 IT FINDMAX Max of dim 1 is VE370 IT FINDMAX Max of dim 2 is VE370 FIND Key 3 -7 -8 not found! ERASE Key -1 3 0 not found when erasing! FIND Key 4 1 -5 not found! ERASE Key -6 -7 -4 not found when erasing! ERASE Key -10 -2 5 not found when erasing! INSERT Inserted VE500 with key tuple -7 -2 1 INSERT Inserted VE512 with key tuple 7 -3 -8 FIND Key 5 -5 -4 not found! FIND Key 6
JOJ Answer
Inserted VE377 with key tuple 0 -8 4 Key -2 0 6 not found when erasing! Key -10 0 6 not found! Inserted VE501 with key tuple 7 1 5 Key -10 5 0 not found! Inserted VE372 with key tuple -1 7 7 Traversing the tree after assignment operator: VE281 VE372 VE370 VE377 VE482 VE501 Traversing the tree after assignment operator: VE281 VE372 VE370 VE377 VE482 VE501 Inserted VE292 with key tuple -6 9 2 Max of dim 1 is VE292 Traversing the tree after assignment operator: VE281 VE292 VE372 VE370 VE377 VE482 VE501 Traversing the tree after assignment operator: VE281 VE292 VE372 VE370 VE377 VE482 VE501 Key 1 1 -10 not found when erasing! Key -5 -3 0 not found! Min of dim 0 is VE292 Max of dim 1 is VE292 Max of dim 2 is VE372 Key 3 -7 -8 not found! Key -1 3 0 not found when erasing! Key 4 1 -5 not found! Key -6 -7 -4 not found when erasing! Key -10 -2 5 not found when erasing! Inserted VE500 with key tuple -7 -2 1 Inserted VE512 with key tuple 7 -3 -8 Key 5 -5 -4 not found! Key 6 1 -2 not found! Min of dim 0 is VE500 Inserted