#Pyth, 14 10 bytes
Pyth, 14 10 bytes
[email protected] Accepts input as lowercase strings. Try it online here.
[email protected] Implicit: .z=input as list of strings, G=lowercase alphabet m G Map each letter in G, as d, using: L .z In each string in .z ... @ d ... keep only those characters which match d S Sort by length e Take the last element (i.e. longest) s Concatenate into string, implicit print Edit: golfed 3 bytes. Previous version: sm*[email protected]