归并排序介绍 一种分而治之思想 归并排序步骤 从下往上的归并排序(自下而上的迭代) 从上往下的归并排序(自上而下的递归):它与"从下往上"在排序上是反方向的。它基本包括3步: ① 分解 -- 将当前区间一分为二,即求分裂点 mid = (low + high)/2; ② 求解 -- 递归地对两个子区 ...
分类:
编程语言 时间:
2021-04-10 13:21:25
阅读次数:
0
已知接下来N天的股票价格,每天你可以买进一股股票,卖出一股股票,或者什么也不做.N天之后你拥有的股票应为0,当然,希望这N天内能够赚足够多的钱 ...
分类:
其他好文 时间:
2021-04-10 12:53:02
阅读次数:
0
class Solution { public: int searchInsert(vector<int> &nums, int target) { int low = 0; int high = nums.size() - 1; //为了严谨 <= while (low <= high) { in ...
分类:
其他好文 时间:
2021-04-07 10:57:40
阅读次数:
0
RTL(Register transfer Level)级和综合(Synthesize)的概念 在之前我们已经谈过,HDL语言有五个层次:系统级,行为级,RTL级,门级,晶体管级。而我们主要也是在RTL级使用Verilog语言。 RTL正如它名字说的那样,主要描述的是寄存器到寄存器之间逻辑功能的实现 ...
分类:
其他好文 时间:
2021-04-07 10:56:44
阅读次数:
0
PAT (Advanced Level) Practice 1027 Colors in Mars (20 分) 凌宸1642 题目描述: People in Mars represent the colors in their computers in a similar way as the E ...
分类:
其他好文 时间:
2021-04-05 12:15:31
阅读次数:
0
一、测试 import tensorflow as tf from tensorflow import keras from tensorflow.keras import datasets import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # x ...
分类:
其他好文 时间:
2021-04-05 12:07:04
阅读次数:
0
import logging LOG_FORMAT = "%(asctime)s %(levelname)s++++++%(message)s" logging.basicConfig(filename="tulingxueyuan.log", level=logging.DEBUG, format ...
分类:
其他好文 时间:
2021-04-01 13:06:35
阅读次数:
0
各角色介绍 Producer:消息的发送者;举例:发信者 Consumer:消息接收者;举例:收信者 Broker:暂存和传输消息;举例:邮局 NameServer:管理Broker;举例:各个邮局的管理机构 Topic:区分消息的种类;一个发送者可以发送消息给一个或者多个Topic;一个消息的接收 ...
分类:
其他好文 时间:
2021-03-30 13:23:18
阅读次数:
0
使用 compile 'org.springframework.cloud:spring-cloud-starter-openfeign' @SpringBootApplication @EnableFeignClients(basePackages = {"com.yue.consumer"}) ...
分类:
其他好文 时间:
2021-03-30 13:11:20
阅读次数:
0
以创建sqli-labs靶场为例子记录一下docker的常用指令 1. 镜像 1.2 查找镜像 docker search sqli-labs 1.3 获取镜像 docker pull sqli-labs 1.4 登录/退出第三方仓库 docker login/logout [ 仓库地址 ] 1.5 ...
分类:
数据库 时间:
2021-03-29 12:47:16
阅读次数:
0