Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for [old] The Ship Teams by mozurin
"use strict";
function twoTeams(sailors)
{
return [
age => age > 40 || age < 20,
age => age <= 40 && age >= 20,
].map(
cond => Object.keys(sailors).filter(name => cond(sailors[name])).sort()
);
}
March 22, 2019
Comments: