Google Interview Question

Given 10 web sockets which will produce sorted string at different time period. Design an API that can provide instance merge of sorted string (merge 10 sorted strings into one)

Interview Answer

Anonymous

Feb 25, 2014

I use observer pattern to solve this problem. And the merge algorithm is comparatively easy.