当前位置:网站首页>判断一串数字是否是快速排序某一次的结果
判断一串数字是否是快速排序某一次的结果
2022-06-11 02:25:00 【ls真的不会啊】
下列选项中,不可能是快速排序第2趟排序结果的是 ()
A.2,3,5,4,6,7,9 B.2,7,5,6,4,3,9 C.3,2,5,4,7,6,9 D.4,2,3,5,7,6,9
解析:四个选项都是同样的数组元素,若完全有序,应为2345679
每经过一趟快排,轴点元素都必然就位,也就是说,一趟下来至少有1个元素在其最终位置
所以考察各个选项,看有几个元素就位即可。
A:2、3、6、7、9
B:2、9
C:9
D:5、9
第二趟至少应有2个元素就位,所以C不对。
边栏推荐
- Wechat applet
- Jetpack Compose Scaffold和TopAppBar(顶部导航)
- [C language classic]: inverted string
- jdbc工具類的問題
- When a logical deletion encounters a unique index, what are the problems and solutions?
- 靠贴牌飞利浦冲击上市,德尔玛的自有品牌又该如何“起跳”?
- P4338 [zjoi2018] history (tree section) (violence)
- AOSP ~ modify default volume
- MySQL backup and recovery
- 微信小程序
猜你喜欢

Jetpack compose box control

Flat data to tree and tree data flattening

【新晋开源项目】动态配置化任务编排框架 Gobrs-Async 加入Dromara开源社区

Introduction to the functions of today's headline search webmaster platform (portal)

Tests logiciels vocabulaire commun anglais

Cyclodextrin metal organic framework( β- Cd-mof) loaded with dimercaptosuccinic acid / emodin / quercetin / sucralose / diflunisal / omeprazole (OME)

弄懂了采矿业与碳中和的逻辑,就读懂了矿区无人驾驶的千亿市场
![[AI weekly] AI and freeze electron microscopy reveal the structure of](/img/2e/e986a5bc44526f686c407378a9492f.png)
[AI weekly] AI and freeze electron microscopy reveal the structure of "atomic level" NPC; Tsinghua and Shangtang proposed the "SIM" method, which takes into account semantic alignment and spatial reso

To view the data in redis, in addition to the command line and client, you have a third option

从绿联冲刺IPO,看手机配件市场沉浮录
随机推荐
Will your company choose to develop data center?
Stc8a8k64d4 EEPROM read / write failure
jdbc工具类的问题
Limiting visibility of symbols when linking shared libraries
A collection of common ADB commands for app testing
Project - redis message queue + worker thread fetches user operation logs and stores them (2)
软件测试英语常见词汇
Manon's advanced road - Daily anecdotes
MySQL备份与恢复
Kotlin let方法
Jetpack compose scaffold and bottomappbar (bottom navigation)
P4338 [zjoi2018] history (tree section) (violence)
基于互联网架构演进, 构建秒杀系统
微信小程序
Unity3d model skin changing technology
STC8A8K64D4 EEPROM读写失败
【冒泡排序的实现】
学习太极创客 — ESP8226 (二)
Kotlin let method
Net core Tianma XingKong series - Interface Implementation for dependency injection and mutual conversion of database tables and C entity classes