Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3-liner solution in Clear category for The Ship Teams by Stensen
two_teams = lambda s: [
sorted([i for i in s if s[i] < 20 or s[i] > 40]),
sorted([i for i in s if 20 <= s[i] <= 40])
]
Nov. 4, 2020