Pergunta de entrevista da empresa Spotify

To sort an array is theorically easy but I didn't know if I could use php's sort() function (I should have made this question). So I tried the create a bubble sort and selection sort but I was too nervous to manage doing it.

Respostas da entrevista

Sigiloso

8 de jan. de 2014

Tech tests were acceptable because it can test your programming skill but in any moment I was asked or tested about my frontend skills and the job description was pretty clear the it was a frontend position and php was a plus.

Sigiloso

7 de abr. de 2014

Check nested strings following this examples: (intermediate). '{}' -> is nested '{{}}' -> is nested '{}{}' -> is nested '{}}{' -> not nested '}{{}' -> not nested '{{{}}}' -> is nested int i =0; increment i by 1 each time you encounter { decrement i by 1 each time you encounter } The moment i goes < 0, you know it is not nested.

2