You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in examples/abc.py has a bug. The minvalue variable is actually never updated in the loop so it returns the wrong solution. The optimal solution to the problem is actually a=1, b=9, c=9 which achieves a value of 199/19=10.47 (better than 999/27=37) .
The code in examples/abc.py has a bug. The
minvalue
variable is actually never updated in the loop so it returns the wrong solution. The optimal solution to the problem is actuallya=1, b=9, c=9
which achieves a value of199/19=10.47
(better than999/27=37
) .Easy fix. Just need to remember to update
minvalue
.The test case has the wrong solution too so will need to update that as well.
The text was updated successfully, but these errors were encountered: