#基数排序 也是采用分桶的思想,但是加入了按位比较的思想(可以理解为每位进行一次计数排序) 思路: 计算数列中最大位数 按位数循环处理每位的排序 代码实现: #include<iterator> #include<iostream> #include<vector> using namespace ...
分类:
编程语言 时间:
2021-04-20 15:17:05
阅读次数:
0
this关键字 this关键字的作用: @Data public class jtest { private String name; public jtest(){ //调用构造方法,只能在构造方法中使用,且必须是第一行 this("dwx"); } public jtest(String nam ...
分类:
编程语言 时间:
2021-04-20 15:11:01
阅读次数:
0
1 typedef int semaphore; 2 semaphore count_mutex = 1; 3 semaphore data_mutex = 1; 4 int count = 0; 5 6 void reader(){ 7 while(TRUE){ 8 down(&count_mut ...
分类:
其他好文 时间:
2021-04-20 15:08:36
阅读次数:
0
Capability/feature WinUI 3 UWP XAML & WinUI 2 WPF WinForms MFC Windows app types supported UWP (Preview) and Win32 UWP Win32 Win32 Win32 Windows versi ...
第一步、安装环境依赖 安装数据库服务 MySQL: Version >= 5.7 / PostgreSQL / TiDB / NOTHING with SQLite3 由于我们用户量较小,所以我们使用 SQLite3 数据库,因此不没有安装独立的数据库服务。 安装 Git 命令 # apt-get ...
分类:
系统相关 时间:
2021-04-20 15:07:29
阅读次数:
0
快速查看ES集群状态 GET _cluster/health { "cluster_name": "elasticsearch", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes" ...
分类:
其他好文 时间:
2021-04-20 14:54:42
阅读次数:
0
1.npm安装:npm install axios 2.axios发送请求后返回的是一个promise 3.axios发送get请求: import axios from 'axios'; axios.get('http://localhost:8080/getData?username=abc&i ...
分类:
移动开发 时间:
2021-04-20 14:53:50
阅读次数:
0
Vue.js基本语法 第一个Vue程序 <div id="app"> {{ message }} </div> var app = new Vue({ el: '#app', //绑定挂载点 data: { message: 'Hello Vue!' } }) el绑定的作用实例范围是什么 el绑定 ...
分类:
其他好文 时间:
2021-04-20 14:38:41
阅读次数:
0
类别:1)0-1背包;2)分数背包 0-1背包使用贪心算法无法获得最优解 分数背包代码如下: def fractional_package(goods, w): """ :param data: [(价值,重量),...] :param w: 要拿取的总重量 :return:(拿走的数量,拿走的总价 ...
分类:
编程语言 时间:
2021-04-20 14:28:39
阅读次数:
0
ip命令 来自于iproute包,可用于代替ifconfig ip [ OPTIONS ] OBJECT { COMMAND | help } ip 命令说明: OBJECT := { link | addr | route } ip link - network device configurat ...
分类:
其他好文 时间:
2021-04-20 14:18:52
阅读次数:
0