Question d’entretien chez Meta

Reverse a string in-place using C.

Réponses aux questions d'entretien

Utilisateur anonyme

16 avr. 2010

void reverse(char *str) { char *end = str + strlen(str) - 1; while (end > str) { char t = *str; *str = *end; *end = t; str++; end--; } }

3

Utilisateur anonyme

23 oct. 2010

You rated the interview as "Very Difficult", and yet the questions you posted are trivially easy and very common, was that supposed to be some sort of joke? :(

2