Amazon Onsite Interview Question - SDE2 - Find first k minimums from 2D array
Anonymous User
679

2D array - {{-3,4,9,11,15},
{-1,0,3,20,21},
{-4,-2,9,10,11}}

Find the first k minimum.

Eg - k = 3 . Ans - {-4,-3,-2}.

Could anyone explain me the approach here?
Comments (3)