最近在做一些面试题,碰到这个题::
Reverse a string word by word in place without using the swap function. The string in not-editable.
来源::http://www.geeksforgeeks.org/adobe-interview-experience/ (第六轮,(b)部分)
这可能吗?反转不可编辑的字符串??用任何语言??! :\
谢谢!
最佳答案
我认为唯一可能的是::
Reverse a string "word by word in place without using the swap function. The string in not-editable."
无论如何您都无法编辑不可编辑的字符串!
关于algorithm - 不使用交换函数反转不可编辑的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31644928/