I've struggled for this problem for a while and finally after I change the declaration order of my two ArrayList, I passed the tests. But I am still confused about why the order is so important, as the requirement also mentioned. For people's reference, I originally declared the list divisible by two first and the list divisible by three came second and I can't pass the tests. After I swap the order the declarations, suddenly I made it! Really confused, any hints would be appreciated.
Why the order in which the lists are declared is so important?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
11 November 2019, 16:21
Because the verification system picks up the lists as they are declared for testing purposes.
0