Frage im Vorstellungsgespräch bei Qualcomm

Reverse a string

Antworten zu Vorstellungsgespräch

Anonym

27. Dez. 2014

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

2

Anonym

14. Dez. 2014

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

1

Anonym

23. Mai 2015

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

1

Anonym

17. Jän. 2018

string[::-1]