3 ms·
disregarding the performance, if someone asked me to write it pythonic i'd just do: sorted([i for i in chain(*lists)])
by TheSmoke 9y ago
disregarding the performance, if someone asked me to write it pythonic i'd just do:
sorted([i for i in chain(*lists)])
- half-kh-hacker 9y agoYeah, this is what I thought too. I guess in an interview you'd have to ask whether to favour performance or readability, though.