文件名称:hebingzifuchuan
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-12-06
- 文件大小:
- 5kb
- 下载次数:
- 0次
- 提 供 者:
- 彭**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
输入两个已经按从小到大顺序排列好的字符串,编写一个合并两个字符串的函数,使合并后的字符串,仍然是从小到 大排列。
输入:
两个已经排好顺序(升序)的两个字符串
输出:
一个合并在一起的有序(升序)的字符串
要求:
设计一个效率尽量高的算法,对每个字符串只扫描一遍就可以了。
如果采用先进行串连接,然后再进行排序的算法,则效率太低了。
-Enter both have small to large order, good strings to write a function merge two strings, so the string after the merger, is still ascending order. Input: two have been in good order (ascending) two string output: a combined ordered (ascending) string requirements: design an efficient algorithm is as high as possible, scan only once for each string on it. If you were using the first serial connection, and then sort of algorithm, the efficiency is too low.
输入:
两个已经排好顺序(升序)的两个字符串
输出:
一个合并在一起的有序(升序)的字符串
要求:
设计一个效率尽量高的算法,对每个字符串只扫描一遍就可以了。
如果采用先进行串连接,然后再进行排序的算法,则效率太低了。
-Enter both have small to large order, good strings to write a function merge two strings, so the string after the merger, is still ascending order. Input: two have been in good order (ascending) two string output: a combined ordered (ascending) string requirements: design an efficient algorithm is as high as possible, scan only once for each string on it. If you were using the first serial connection, and then sort of algorithm, the efficiency is too low.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
合并字符串.cpp
合并字符串.dsp
合并字符串.dsw
合并字符串.ncb
合并字符串.opt
合并字符串.plg