摘要:
问题: 一个已知的字符数组,把里面多余的空格去掉,得到一个新的字符数组,如{a,,,b,c,,,,d}变成{a,b,c,,d}要求: 不能使用临时数组,时间复杂度为O(n)Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->#include<iostream>#include<string>usingnamespacestd;void fun2(char* cArr){ int iSpaceCounter = 0; int 阅读全文
posted @ 2011-02-21 18:24
海黎
阅读(3947)
评论(1)
推荐(0)

浙公网安备 33010602011771号