Question d’entretien chez Qualcomm

Reverse a string

Réponses aux questions d'entretien

Utilisateur anonyme

27 déc. 2014

Solution in python: x = "String to be reversed" n = "" for m in range(len(x)): n = n + x[len(x) - m - 1]

2

Utilisateur anonyme

14 déc. 2014

Apache Commons lang: StringUtils.reverse("String to be reversed");

1

Utilisateur anonyme

23 mai 2015

void reverseString(char *str){ char * end; char temp; if(str){ while(*end){ ++end; } end--; while(str

1

Utilisateur anonyme

17 janv. 2018

string[::-1]