Implement an algorithm to merge an arbitrary number of sorted lists into one sorted list. The aim is to create the smallest working programme, in whatever language you like.
resubmitted
Python - 74 chars (counting whitespace and newlines)
def m(i): y=[];x=sum(i,[]) while x:n=min(x);y+=[n];x.remove(n) return y
i is input as list of lists
i
Usage:
>>> m([[1,5],[6,3]]) [1, 3, 5, 6]