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, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
Inserting key-value pairs: key = -766608value = -367720 1 Inserted (-766608, -367720). Inserting key-value pairs: key = -969643value = 337405 2 Inserted (-969643, 337405). Inserting key-value pairs: key = 608470value = 0 Inserting key-value pairs: key = 608470value = 0 Inserting key-value pairs: key = -766608value = -367720 Inserting key-value pairs: key = -969643value = 337405 3 Accessed (608470, 0); Updated to (608470, -702436). Rehashed table from 5 to 11. Inserting key-value pairs: key = -626576value = 0 4 Accessed (-626576, 0); Updated to (-626576, -817460). Inserting key-value pairs: key = 518895value = 0 5 Accessed (518895, 0); Updated to (518895, 991783). Inserting key-value pairs: key = -628383value = -829666 Inserting key-value pairs: key = -626576value = -817460 Inserting key-value pairs: key = -969643value = 337405 Inserting key-value pairs: key = 518895value = 991783 Inserting key-value pairs: key = 608470value = -702436 Inserting key-value pairs: key = -628383value = -829666 Insert
JOJ Answer
1 Inserted (-766608, -367720). 2 Inserted (-969643, 337405). 3 Accessed (608470, 0); Updated to (608470, -702436). Rehashed table from 5 to 11. 4 Accessed (-626576, 0); Updated to (-626576, -817460). 5 Accessed (518895, 0); Updated to (518895, 991783). 6 Inserted (-628383, -829666). Rehashed table from 11 to 23. 7 Accessed (779907, 0); Updated to (779907, -246302). 8 Inserted (257087, -295961). 9 Accessed (-649217, 0); Updated to (-649217, 904947). 10 Accessed (460927, 0); Updated to (460927, 750941). 11 Accessed (430333, 0); Updated to (430333, 650666). 12 Accessed (541346, 0); Updated to (541346, -885433). Rehashed table from 23 to 47. 13 Accessed (418263, 0); Updated to (418263, -13581). 14 Accessed (-336892, 0); Updated to (-336892, 586312). 15 Inserted (331553, -267854). 16 Inserted (-626034, 146965). 17 Inserted (-241139, -178454). 18 Inserted (72428, 421440). 19 Updated (-766608, -138703). 20 Accessed (420048, 0); Updated to (420048, 658961). 21 Accessed (-102298, 0); Updated to (-102298, 879152). 22 A