本文将分析put(),resize(),get()和remove()方法的源码 putval()方法 大致步骤:计算key的hash值;根据hash值计算数组下标;判断下标处是否有节点,无节点则直接插入,有则根据是链表还是红黑树进行对应操作。 这里需要注意的是如果插入链表后长度达到了8,且table ...
分类:
其他好文 时间:
2021-04-30 12:17:45
阅读次数:
0
使用vue开发项目时我们需要数据来测试自己开发的项目,但此时后台api接口开发还没有完成,为了保证项目的按期完成,可以使用mockjs模拟数据。用mockjs模拟数据优点有很多详情单击官网查看。 开始使用mockjs: 1.安装mock插件,使用vscode开发工具,命令行输入 npm instal ...
分类:
Web程序 时间:
2021-04-30 12:00:49
阅读次数:
0
IaaS 平台构建 1.关闭防火墙,禁止开机自启 systemctl stop firewalld systemctl disable firewalld 2.设置主机名 hostnamectl set-hostname controller 设置主机名compute 3.设置selinux,per ...
分类:
其他好文 时间:
2021-04-29 12:11:43
阅读次数:
0
安装cargo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh vscode插件 ext install rust-lang.rust ext install vadimcn.vscode-lldb 调试配置 launsh ...
分类:
其他好文 时间:
2021-04-29 12:07:59
阅读次数:
0
TSSC_go_install_linux 下载地址 https://golang.org/dl/ https://golang.org/dl/go1.16.3.linux-amd64.tar.gz https://golang.org/dl/go1.16.3.windows-amd64.msi h ...
分类:
编程语言 时间:
2021-04-29 12:02:29
阅读次数:
0
yum -y install git yum方式安装源码,但版本很旧 git version 查看git版本 https://github.com/git/git/releases 上github下载最新版本git源码包,上传至服务器/opt/software(这次下载的是2.8.0版本) tar ...
分类:
系统相关 时间:
2021-04-29 12:02:09
阅读次数:
0
problem 892. Surface Area of 3D Shapes solution#1: code 注意,不是简单的投影面积的2倍; 参考 1. leetcode_easy_math_892. Surface Area of 3D Shapes; 2. Grandyang; 完 ...
分类:
其他好文 时间:
2021-04-29 11:47:25
阅读次数:
0
GIS坐标系:WGS84,GCJ02,BD09,火星坐标,大地坐标等解析说与转换 各个坐标系的来龙去脉背景诠释,使用注意事项,各个坐标系转换方法。WGS84转GCJ02、GCJ02转BD009、BD09转GCJ02。坐标批量转换库,https: www npmjs com package coord ...
分类:
其他好文 时间:
2021-04-28 12:18:47
阅读次数:
0
一、生态建设 第三方Package https://pub.dev/packages?sort=popularity 截止2021年4月,第三方库达到17000+ 二、Devops 代码风格检查 Android Studio插件 可以使用Android Studio → Plugs → 搜索Dart ...
分类:
移动开发 时间:
2021-04-28 12:03:41
阅读次数:
0
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE generatorConfiguration PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" "http:// ...
分类:
移动开发 时间:
2021-04-28 11:48:02
阅读次数:
0