Pergunta de entrevista da empresa eBay

If you have an array of characters, write a method to reverse the string.

Respostas da entrevista

Sigiloso

11 de mai. de 2011

You can do this with Stringbuffer as well.

Sigiloso

4 de fev. de 2011

I have known this question and the answer is can do it recursively. It's hard to explain this over the phone in words. He didn't really like it and said to use pointers to go to midway and do a swap. I think it's a matter of preference.