3 ms·
you are right about sorted() but I was thinking it could be useful if you don't have sorted arrays but need similar functionality and arrays are not too big so
by mmihaljevic 14y ago
you are right about sorted() but I was thinking it could be useful if you don't have sorted arrays but need similar functionality and arrays are not too big so you don't need an iterator but I was really amazed with heapq.merge()
I appreciate your comment
- tantalor 14y ago> if you don't have sorted arrays In this case certainly you should sort the multiple smaller arrays (in parallel), not the merged one.