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
FIND Key -7 -9 4 not found! INSERT Inserted VE309 with key tuple 3 -4 -4 IT FINDMAX Max of dim 1 is VE281 INSERT Inserted VE399 with key tuple 9 -1 4 FIND Key 5 -7 -2 not found! IT FINDMIN Min of dim 0 is VE281 INSERT Inserted VE547 with key tuple 3 5 5 ERASE Key -10 -6 -6 not found when erasing! ERASE Key 7 -7 6 not found when erasing! ERASE Key 9 -3 1 not found when erasing! ERASE Key 3 -4 8 not found when erasing! INSERT Inserted VE384 with key tuple 9 -10 -4 FIND Key 0 -6 8 not found! INSERT Traversing the tree after assignment operator: VE370 ERASE Key -5 -7 -8 not found when erasing! IT FINDMIN Min of dim 0 is VE370 IT FINDMIN Min of dim 1 is VE370 IT FINDMAX Max of dim 1 is VE370 IT FINDMAX Max of dim 0 is VE370 INSERT Inserted VE378 with key tuple -7 -7 1 INSERT Traversing the tree after assignment operator: VE370 INSERT Inserted VE504 with key tuple -9 -6 5 IT FINDMIN Min of dim 1 is VE504 INSERT Inserted VE288 with key tuple -1 -3 2 INSERT Inserted VE488 with key tuple -8 5 9 FIND Key 9 6 0 not foun
JOJ Answer
Key -7 -9 4 not found! Inserted VE309 with key tuple 3 -4 -4 Max of dim 1 is VE281 Inserted VE399 with key tuple 9 -1 4 Key 5 -7 -2 not found! Min of dim 0 is VE281 Inserted VE547 with key tuple 3 5 5 Key -10 -6 -6 not found when erasing! Key 7 -7 6 not found when erasing! Key 9 -3 1 not found when erasing! Key 3 -4 8 not found when erasing! Inserted VE384 with key tuple 9 -10 -4 Key 0 -6 8 not found! Traversing the tree after assignment operator: VE281 VE370 VE309 VE384 VE482 VE399 VE547 Key -5 -7 -8 not found when erasing! Min of dim 0 is VE281 Min of dim 1 is VE384 Max of dim 1 is VE547 Max of dim 0 is VE399 Inserted VE378 with key tuple -7 -7 1 Traversing the tree after assignment operator: VE378 VE281 VE370 VE309 VE384 VE482 VE399 VE547 Inserted VE504 with key tuple -9 -6 5 Min of dim 1 is VE384 Inserted VE288 with key tuple -1 -3 2 Inserted VE488 with key tuple -8 5 9 Key 9 6 0 not found! Key 2 -4 7 not found! Inserted VE571 with key tuple -4 -3 -2 Max of dim 2 is VE488 Key -3 1 -1 not found when erasin