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
insert: 426, 109 insert: 480, 0 insert: 374, 997 insert: 490, 750 insert: 253, 0 insert: 270, 0 erase: 756 erase: 464 insert: 966, 548 erase: 756 erase: 788 insert: 115, 0 erase: 467 insert: 920, 0 insert: 260, 0 erase: 931 insert: 43, 0 insert: 337, 580 insert: 785, 0 erase: 543 erase: 337 erase: 495 insert: 701, 518 insert: 894, 0 erase: 567 insert: 897, 333 erase: 676 insert: 753, 641 insert: 276, 326 erase: 948 insert: 973, 910 erase: 920 erase: 253 insert: 691, 0 insert: 552, 83 insert: 567, 423 erase: 60 insert: 323, 147 erase: 753 erase: 760 erase: 567 insert: 676, 106 insert: 753, 105 erase: 276 erase: 465 insert: 567, 645 erase: 570 insert: 965, 0 erase: 864 erase: 894 insert: 519, 603 insert: 276, 0 insert: 620, 779 insert: 570, 0 insert: 337, 816 erase: 864 erase: 864 erase: 620 erase: 785 insert: 467, 217 insert: 464, 0 erase: 323 insert: 760, 0 insert: 253, 0 insert: 756, 0 erase: 480 insert: 931, 0 erase: 391 erase: 43 insert: 879, 0 erase: 875 erase: 43 insert: 323, 0 erase: 973 insert: 495, 34
JOJ Answer
========== Resulting HashTable ========== 0 | 1 | 2 | 3 | {391, 603} {973, 603} 4 | 5 | {490, 500} {781, 329} 6 | {879, 8} 7 | 8 | 9 | {785, 370} 10 | 11 | 12 | {691, 662} 13 | {886, 556} 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | {701, 69} 23 | 24 | {897, 765} 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | {323, 788} 33 | 34 | {519, 362} 35 | 36 | 37 | 38 | {426, 516} 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | {920, 232} 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | {57, 760} {445, 627} 58 | 59 | {59, 484} {253, 310} 60 | {60, 106} 61 | 62 | 63 | 64 | 65 | 66 | {260, 888} 67 | {552, 539} 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | {948, 344} 76 | {270, 132} 77 | {465, 812} {756, 386} 78 |