线性表用顺序存储,设计一个算法,用尽可能少的辅助存储空间将顺序表中前m个元素和后n个元素进行整体互换。即将线性表:<img src='https://img2.soutiyun.com/ask/2020-12-23/977571898416833.png' />改变为:<img src='https://img2.soutiyun.com/ask/2020-12-23/977571909533469.png' />

时间:2024-04-03 13:05:26

相似题目

推荐题目