Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a mistake in part 2 of the Lottery Numbers exercise in Part 11 of the course #52

Open
ishanmorwal opened this issue Jul 7, 2024 · 1 comment

Comments

@ishanmorwal
Copy link

The problem statement says that the resultant list should contain the values whose indices match the indices in the original list (and obviously the values), but the sample output has you believing otherwise since:

week8 = LotteryNumbers(8, [1,2,3,10,20,30,33])
my_numbers = [1,4,7,10,11,20,30]

print(week8.hits_in_place(my_numbers))

should return (acc to the problem statement) :
[1,-1,-1,10,-1,-1,-1]
but sample output is:
[1,-1,-1,10,-1,20,30]

do i not understand the problem statement?

@mithuns
Copy link

mithuns commented Nov 5, 2024

Just seems incorrect to me. How often do they take these into account and update ? Does anyone know ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants