Amazon SDE2 | Onsite | Merge k lists
Anonymous User
1292

Merge k lists, but the given input is stream: given a list of Stream, all the elements polled from Stream would be sorted in increasing order, output a Stream with all the elements in sorted order. suppose the Stream has function poll() and offer()

Comments (1)