#NEWLINE# def mergeKLists_TLE2( self , lists ) : #NEWLINE# #INDENT# '\n\n        :param lists: a list of ListNode\n        :return: ListNode\n        ' #NEWLINE# lists = filter ( ( lambda x : ( x is not None ) ) , lists ) #NEWLINE# if ( not lists ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# result = lists [ 0 ] #NEWLINE# for i in xrange ( 1 , len ( lists ) ) : #NEWLINE# #INDENT# result = self . mergeTwoLists ( result , lists [ i ] ) #NEWLINE# #UNINDENT# return result