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
========== Resulting HashTable ========== 0 | 1 | 2 | 3 | {3, -456341} 4 | 5 | 6 | 7 | {-336402, -562240} {7, -91584} 8 | 9 | 10 | 11 | {11, 113934} 12 | 13 | 14 | 15 | {710706, 419155} 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | {236923, 864421} 27 | 28 | 29 | {29, -872913} 30 | 31 | 32 | 33 | {473827, -730489} {947621, -253783} 34 | 35 | 36 | 37 | 38 | 39 | {473833, -319251} 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | {-99464, 248036} 49 | 50 | {947638, -940962} 51 | 52 | 53 | 54 | {710745, -890131} 55 | 56 | 57 | {-99455, -456387} 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | {-573240, 650291} 67 | {947655, -592630} 68 | 69 | {236966, 920844} {473863, 890601} 70 | 71 | 72 | 73 | {473867, -689465}
JOJ Answer
========== Resulting HashTable ========== 0 | 1 | 2 | 3 | {3, -456341} 4 | 5 | 6 | 7 | {-336402, -562240} {7, -91584} 8 | 9 | 10 | 11 | {11, 113934} 12 | 13 | 14 | 15 | {710706, 419155} 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | {236923, 864421} 27 | 28 | 29 | {29, -872913} 30 | 31 | 32 | 33 | {473827, -730489} {947621, -253783} 34 | 35 | 36 | 37 | 38 | 39 | {473833, -319251} 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | {-99464, 248036} 49 | 50 | {947638, -940962} 51 | 52 | 53 | 54 | {710745, -890131} 55 | 56 | 57 | {-99455, -456387} 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | {-573240, 650291} 67 | {947655, -592630} 68 | 69 | {236966, 920844} {473863, 890601} 70 | 71 | 72 | 73 | {473867, -689465}