vivian
Level 2
United States of America
Only failing the last partFor a long time I was getting the error that it took too long to validate. I am no longer getting that error. Now it just says it's not giving the correct output.
The program completes for N=1000000 in "0" seconds.
Result for N= 1000000:
[1, 2, 3, 4, 5, 6, 7, 8, 9, 153, 370, 371, 407, 1634, 8208, 9 "The array returned by the getNumbers method is either missing elements or has extra elements." or is the problem the usage of memory?After reading some codes that worked with this "Armstrong Numbers" thing, I came up with this code (which is adapted from a code I found here).
The output for this code, which seems correct, is:
[1, 2, 3, 4, 5, 6, 7, 8, 9, 25, 36, 125, 216, 729]
memory 3918
time = 0
[1, 2, 3, 4, 5, 6, 7, 8, 9, 25,