Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Ship Teams by igor.v.dudenko
def two_teams(sailors):
teams = [[], []]
for name in sorted(sailors.keys()):
teams[20 <= sailors[name] <= 40].append(name)
return teams
April 3, 2019
Comments: