You need to sign in or sign up before continuing.
Commit 1609ba72 authored by Samarth Joshi's avatar Samarth Joshi

Adding solution for q2

parent 5b8599d3
import functools import functools
import operator import operator
def collapse(L) : def collapse(L) :
flat = functools.reduce(lambda x,y: operator.concat(x,y), L)
return " ".join(flat)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment