剑指offer——面试题42:翻转单词顺序VS左旋转字符串

void Reverse(char *pBegin, char *pEnd) { if(pBegin == NULL || pEnd == NULL) return; while(pBegin < pEnd) { char temp = *pBegin; *pBegin = *pEnd; *pEnd = te
相关文章
相关标签/搜索