2 ms·
For the line "70 print "Value " x " has " a(x) " repetitions"" to work you'd need an array with 2^64 elements. That said the code as you wrote it would just res
by contravariant 9y ago
For the line "70 print "Value " x " has " a(x) " repetitions"" to work you'd need an array with 2^64 elements. That said the code as you wrote it would just result in an array filled with 10 million entries, all of which are 1 (assuming the array is initialized to 0).
- woliveirajr 9y agoYou're right, I was just thinking in the counting of repeated values. Can't edit to correct now...