4 ms·
("letters in this sentence".split(//) & "and this one".split(//)).sort.reverse.join I'm just learning, but I think this performs it correctly with sets.
by wcarss 16y ago
("letters in this sentence".split(//) & "and this one".split(//)).sort.reverse.join
I'm just learning, but I think this performs it correctly with sets.