05 2022 档案

摘要:快速排序的思想就是分治 具体递归过程是: 1、用一个sort排序函数,讲数划为2部分。具体为找到一个基准数(我选第一个数字),让其左边元素小于其,右边元素大于其; 2、将左边放入这个sort排序函数中 3、将右边放入这个sort排序函数中 4、直到放入的是一个元素,说明不用排序了,递归就结束了。 将 阅读全文
posted @ 2022-05-26 01:21 胖喵~ 阅读(75) 评论(0) 推荐(0) 编辑
摘要:/** * Problem Statement Design a class to calculate the median of a number stream. The class should have the following two methods: * insertNum(int nu 阅读全文
posted @ 2022-05-20 00:43 胖喵~ 阅读(54) 评论(0) 推荐(0) 编辑
摘要:◆版权声明:本文出自胖喵~的博客,转载必须注明出处。 转载请注明出处:https://www.cnblogs.com/by-dream/p/12895967.html 基本判断 # -*- coding: utf-8 -*- # 变量初始化 i = 0 s = "abcde" j = [] k = 阅读全文
posted @ 2022-05-18 20:55 胖喵~ 阅读(104) 评论(1) 推荐(1) 编辑

点击右上角即可分享
微信分享提示