Front interview question

flatten the array, given a large file find out topK elements. Write code for these problems.

Interview Answer

Anonymous

Jan 23, 2019

I answered correctly with best time complexity. 1: Using recursion. It was pretty easy 2; Using min heap