33
Kurush Kurushich
Last seen 6 days ago
Member for 11 years, 2 months, 12 days
Difficulty Normal
There is an error in your solution. You can consider the following additional test case: "assert river_crossing(0, 4, 1, 2) == 7, 'many goats'".
More
There is an error in your solution. You can repeat it with "river_crossing(0, 2, 7, 3)". You’ll get a "name 'small' is not defined" error.
More
You could improve your solution by reducing it to "return items.count(True) > items.count(False)".
More
Nice job! My solution is almost the same. I used comparison "i == 0" instead of "not i".
More
You can improve your solution by using slices two times: "return line[-1:]+line[:-1]".
More
The best possible solution for this task.
More
I have the same solution here. Almost all players use this solution but it won’t make it worse. Nice job!
More