- 博客(3)
- 问答 (2)
- 收藏
- 关注
原创 快速排序(quickSort) Golang实现(源码)
// maxDepth returns a threshold at which quicksort should switch// to heapsort. It returns 2*ceil(lg(n+1)).func maxDepth(n int) int { var depth int for i := n; i > 0; i >>= 1 { depth++ } return depth * 2}// Sort sorts data.// It makes
2022-01-10 16:38:58 235 1
原创 Mac中下载Tomcat8并配置环境变量
文章目录安装前环境声明一、Tomcat下载二、配置步骤1.将下载的tar文件,解压到/Library2.配置环境变量安装前环境声明mac版本:Tomcat版本:8.5.73一、Tomcat下载Tomcat官网:Tomcat 8 Software Downloads二、配置步骤1.将下载的tar文件,解压到/Librarysudo tar -zxvf /Users/bigcatlee/Downloads/apache-tomcat-8.5.73.tar.gz -C /Library其中
2021-12-01 16:38:14 679
原创 go程序设计语言 练习题 3.3-3.4 三维曲面函数
题目:练习3.3: 按高度给每个多边形上色,使得峰顶呈红色,谷底呈蓝色。练习3.4: 仿照1.7节的实例Lissajous的方法,构建一个Web服务器,计算并生成曲面,同时将SVG数据写入客户端。服务器必须如下设置Content-Type报头。w.Header().Set("Content-Type","image/svg+xml")代码内容包括了gopl.io/ch1/lissajous、gopl.io/ch1/server3和gopl.io/ch3/surface 三个案例代码。// Co
2021-11-25 02:24:21 386 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人