Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Speedy category for The Ship Teams by nonZero
def two_teams(sailors):
teams = [[], []]
for name, age in sorted(sailors.items()):
teams[20 <= age <= 40].append(name)
return teams
Oct. 3, 2018
Comments: