Pergunta de entrevista da empresa Booking.com

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

Resposta da entrevista

Sigiloso

15 de ago. de 2017

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