Pergunta de entrevista da empresa Meta

Questions I've been asked: Do you think what you just coded is correct? Show me (reason) how your code will behave on <this-particular-input> What is the time/space complexity of what your solution? Can we do better than that? Are you sure we can't?

Resposta da entrevista

Sigiloso

21 de out. de 2015

I did mess quite a lot the simple coding task. Like I managed to produce an infinite loop which I failed to spot early enough. Don't do that. I also claimed we can't do it better than that, because I've made an assumption about the format of the result, which was not there in the task spec. Don't do that either. :)