Pergunta de entrevista da empresa Qualcomm

Reverse a string

Respostas da entrevista

Sigiloso

27 de dez. de 2014

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

2

Sigiloso

14 de dez. de 2014

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

1

Sigiloso

23 de mai. de 2015

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

1

Sigiloso

17 de jan. de 2018

string[::-1]