Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ah, some googling got me here:

http://www.geeksforgeeks.org/merge-k-sorted-arrays/

Merge k sorted arrays. Obviously that's a job for a min heap (not heap sort though, just a heap to keep the values of the next item in each array).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: