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.
Please double check your code to solve this problem and try again.
Your Answer
1 Accessed (-164180, 0); Updated to (-164180, -312898). 2 741851 not found. 3 Inserted (678535, 533484). 4 Inserted (7388, -308988). Rehashed table from 5 to 11. 5 -430030 is not present. 6 Accessed (51276, 0); Updated to (51276, -607690). 7 -195062 is not present. 8 Inserted (-12591, 863618). 9 Accessed (489739, 0); Updated to (489739, -726817). Rehashed table from 11 to 23. 10 Inserted (-796486, -798511). 11 449927 not found. 12 Accessed (-904319, 0); Updated to (-904319, 49280). 13 492054 is not present. 14 Inserted (967437, 566536). 15 -461635 not found. 16 83176 not found. 17 -161241 not found. 18 739566 not found. 19 18125 not found. 20 Inserted (549092, -431157). 21 Accessed (-990676, 0); Updated to (-990676, -861764). 22 -578716 not found. 23 -987053 not found. 24 Accessed (-629401, 0); Updated to (-629401, -961790). Rehashed table from 23 to 47. 25 -922072 is not present. 26 Inserted (-196323, -728580). 27 -128769 is not present. 28 691485 not found. 29 Inserted (-429752, -414693). 30 570030 not foun
JOJ Answer
1 Accessed (-164180, 0); Updated to (-164180, -312898). 2 741851 not found. 3 Inserted (678535, 533484). 4 Inserted (7388, -308988). Rehashed table from 5 to 11. 5 -430030 is not present. 6 Accessed (51276, 0); Updated to (51276, -607690). 7 -195062 is not present. 8 Inserted (-12591, 863618). 9 Accessed (489739, 0); Updated to (489739, -726817). Rehashed table from 11 to 23. 10 Inserted (-796486, -798511). 11 449927 not found. 12 Accessed (-904319, 0); Updated to (-904319, 49280). 13 492054 is not present. 14 Inserted (967437, 566536). 15 -461635 not found. 16 83176 not found. 17 -161241 not found. 18 739566 not found. 19 18125 not found. 20 Inserted (549092, -431157). 21 Accessed (-990676, 0); Updated to (-990676, -861764). 22 -578716 not found. 23 -987053 not found. 24 Accessed (-629401, 0); Updated to (-629401, -961790). Rehashed table from 23 to 47. 25 -922072 is not present. 26 Inserted (-196323, -728580). 27 -128769 is not present. 28 691485 not found. 29 Inserted (-429752, -414693). 30 570030 not foun