Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

HW program not working fine when uploaded

christian.gennarelli (1130 points)
1 2 7
in HW2 by (1.1k points)
When I try to run my program on my pc is working fine, passing all tests without any timeout, but when I try to upload it on Q2A it says that it passed only 3 tests. I also created a copy of the matches list, in order to not change it as requested. How is it possible? :(
210 views
closed

2 Answers

Best answer
andrea.sterbini (207920 points)
750 1267 2373
by (208k points)
selected by
Yu have not copied the list matches, but assigned the same list to another variable
KilianS (3590 points)
7 10 27
by (3.6k points)
try appending the items of matches to a new list instead of copying it. By "copying" it, you just assign the list to a new variable, it is still the same list.

hope that helps