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
Key 5 -5 0 not found when erasing! Max of dim 0 is VE482 Key -3 2 -4 not found! Key 4 4 9 not found! Key -5 8 7 not found! Min of dim 2 is VE281 Key 1 -4 3 not found! Min of dim 0 is VE281 Max of dim 0 is VE482 Key -8 -9 0 not found! Inserted VE493 with key tuple 6 2 -6 Inserted VE586 with key tuple 4 3 -5 Key 4 3 5 not found when erasing! Inserted VE448 with key tuple 8 -7 0 Traversing the tree after assignment operator: VE281 VE370 VE448 VE482 VE493 VE586 Inserted VE507 with key tuple -2 -2 -10 Inserted VE415 with key tuple 5 6 4 Key -1 -3 -5 not found! Min of dim 0 is VE507 Max of dim 0 is VE448 Min of dim 1 is VE448 Inserted VE486 with key tuple 2 -4 -4 Key -3 8 6 not found! Key -10 -10 0 not found! Inserted VE422 with key tuple 9 -9 -9 Key 5 -3 -1 not found! Min of dim 2 is VE507 Traversing the tree after assignment operator: VE507 VE281 VE370 VE486 VE422 VE448 VE482 VE493 VE586 VE415 Inserted VE564 with key tuple -10 -6 0 Inserted VE578 with key tuple 7 -8 -9 Key -3 8 -2 not found when erasing! Inserted
JOJ Answer
Key 5 -5 0 not found when erasing! Max of dim 0 is VE482 Key -3 2 -4 not found! Key 4 4 9 not found! Key -5 8 7 not found! Min of dim 2 is VE281 Key 1 -4 3 not found! Min of dim 0 is VE281 Max of dim 0 is VE482 Key -8 -9 0 not found! Inserted VE493 with key tuple 6 2 -6 Inserted VE586 with key tuple 4 3 -5 Key 4 3 5 not found when erasing! Inserted VE448 with key tuple 8 -7 0 Traversing the tree after assignment operator: VE281 VE370 VE448 VE482 VE493 VE586 Inserted VE507 with key tuple -2 -2 -10 Inserted VE415 with key tuple 5 6 4 Key -1 -3 -5 not found! Min of dim 0 is VE507 Max of dim 0 is VE448 Min of dim 1 is VE448 Inserted VE486 with key tuple 2 -4 -4 Key -3 8 6 not found! Key -10 -10 0 not found! Inserted VE422 with key tuple 9 -9 -9 Key 5 -3 -1 not found! Min of dim 2 is VE507 Traversing the tree after assignment operator: VE507 VE281 VE370 VE486 VE422 VE448 VE482 VE493 VE586 VE415 Inserted VE564 with key tuple -10 -6 0 Inserted VE578 with key tuple 7 -8 -9 Key -3 8 -2 not found when erasing! Inserted