阅读背景:

反转字符串的字符

来源:互联网 

I am trying to reverse the words in a string. Consider a string 'My name is abc'. The expected output should be 'cba si eman yM'. But I am getting the output as 'cba si emanyM'. There's something wrong in the final whitespace character. Can someone help me?I am trying to reverse the words in a string. C




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: