Pergunta de entrevista da empresa CareerBuilder

Take an input string and output the reverse of that string. May use any programming language.

Respostas da entrevista

Sigiloso

12 de dez. de 2012

$string = 'Hello'; echo strrev($string);

2

Sigiloso

23 de jul. de 2014

They won't let you use prebuilt functions like reversed() or strrev(), its not a test of being able to search documentation. #python2.7 string = 'hello' reversed_string = string[-1::-1] print reversed_string

1

Sigiloso

14 de set. de 2012

#done in python myString = "This is a test" ''.join(reversed(myString)) #note: there are two single quotes before .join()