Pergunta de entrevista da empresa Zendesk

I was asked to explain the functionality of an undocumented piece of code, which was a recursive function.

Resposta da entrevista

Sigiloso

20 de set. de 2016

I explained that I did not initially know what the code was doing. I then, while describing my thought process aloud, took logical steps towards understanding the code by trying different test inputs and tracking the values of each variable at each step until the answer became clear.