摘要: 重拾代码,从排序算法开始,排序从冒泡开始~~ 冒泡排序很形象也很简单,将大数一个一个地后移(升序排列),数组就排好序了。时间复杂度为n² 1 #include<iostream> 2 3 void bubbleSort(int a[],int len);//冒泡排序 4 void print(int 阅读全文
posted @ 2021-02-19 22:08 大众名字重名太多 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/95494635 1089 Insert or Merge (25 分) 1089 Insert or Merge (25 分) 1089 Insert or Merg 阅读全文
posted @ 2019-07-11 17:15 大众名字重名太多 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/94588321 归并排序的基本操作是将两个有序数组合并成一个有序数组,原理是运用分治思想,递归地将一个数组的左右两部分有序数列进行归并。 C/C++的递归实现: C/ 阅读全文
posted @ 2019-07-03 18:46 大众名字重名太多 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/94325835 1090 Highest Price in Supply Chain (25 分) 1090 Highest Price in Supply Chai 阅读全文
posted @ 2019-06-30 15:32 大众名字重名太多 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/94207638 1091 Acute Stroke (30 分) 1091 Acute Stroke (30 分) 1091 Acute Stroke (30 分) 阅读全文
posted @ 2019-06-29 21:26 大众名字重名太多 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/93389073 1093 Count PAT's (25 分) 1093 Count PAT's (25 分) 1093 Count PAT's (25 分) The 阅读全文
posted @ 2019-06-23 17:15 大众名字重名太多 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/93311728 1094 The Largest Generation (25 分) 1094 The Largest Generation (25 分) 1094  阅读全文
posted @ 2019-06-22 11:49 大众名字重名太多 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/93135047 1095 Cars on Campus (30 分) 1095 Cars on Campus (30 分) 1095 Cars on Campus ( 阅读全文
posted @ 2019-06-20 21:20 大众名字重名太多 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/91349859 1096 Consecutive Factors (20 分) 1096 Consecutive Factors (20 分) 1096 Consec 阅读全文
posted @ 2019-06-09 05:29 大众名字重名太多 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 本文同步发布在CSDN:https://blog.csdn.net/weixin_44385565/article/details/91157982 1097 Deduplication on a Linked List (25 分) 1097 Deduplication on a Linked L 阅读全文
posted @ 2019-06-07 22:13 大众名字重名太多 阅读(374) 评论(0) 推荐(0) 编辑