using the reverse arguement in sorted() should be the best practice for checking order.
This comment is hidden because it contains spoiler information about the solution
this result should be rated higher. simply providing index 0 for pop() is clever.
i like the use of a comprehension here.
As I look at it now, you are absolutely right. Probably the enumerate remained from the previous idea and I forgot to change it. A normal "range" is fine, see this fork. Thanks for this point ;)
enumerate
maybe enumerate is a less than best because of the hanging "d" in the loop.
classic kata with math part. I'd like it.
Me too, I'm very confused. Did you figure it out?
definately pay attention to the percent weight given as integers...
Loading collection data...
using the reverse arguement in sorted() should be the best practice for checking order.
This comment is hidden because it contains spoiler information about the solution
this result should be rated higher. simply providing index 0 for pop() is clever.
i like the use of a comprehension here.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
As I look at it now, you are absolutely right.
Probably the
enumerate
remained from the previous idea and I forgot to change it.A normal "range" is fine, see this fork.
Thanks for this point ;)
maybe enumerate is a less than best because of the hanging "d" in the loop.
classic kata with math part. I'd like it.
Me too, I'm very confused. Did you figure it out?
definately pay attention to the percent weight given as integers...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...