Booking.com Interview Question

return the longest sequence in array (a,a+1,a+2,...) what is the best order for it

Interview Answer

Anonymous

Aug 15, 2017

I sorted the array with merge sort nlogn and loop on the elements