Pergunta de entrevista da empresa 6sense

Second Round - Coding Round 1. Make all elements equal in minimum number of steps. You can increment all number except one element by 1 at a time.

Resposta da entrevista

Sigiloso

29 de set. de 2021

Question was not clear and i asked interviewer to provide more inputs. Interviewer were very silent. I still completed with NlogN complexity but interviewer was not satisfied and wanted answer in O(N) only. Interviwer could have said to move on to next question and not waste time on the same question but he did not.