上一页 1 2 3 4 5 6 ··· 164 下一页
  2021年9月16日
摘要: 题目描述 难度:困难 给你一个整数数组 nums,有一个大小为 k 的滑动窗口从数组的最左侧移动到数组的最右侧。你只可以看到在滑动窗口内的 k 个数字。滑动窗口每次只向右移动一位。 返回滑动窗口中的最大值。 示例 1: 输入:nums = [1,3,-1,-3,5,3,6,7], k = 3输出:[ 阅读全文
posted @ 2021-09-16 17:51 蔡军帅 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 题目描述 设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) —— 将元素 x 推入栈中。pop() —— 删除栈顶的元素。top() —— 获取栈顶元素。getMin() —— 检索栈中的最小元素 示例: 输入: ["MinStack","pus 阅读全文
posted @ 2021-09-16 15:43 蔡军帅 阅读(34) 评论(0) 推荐(0) 编辑
  2021年9月15日
摘要: 昨天更新了Virtualmin的系统识别部分,目的是让它能支持Debian系统下的一键安装和优化,代码修改了差不多,将VPS重新安装为Debian,通过sh ./virtualmin.sh执行代码就报“Syntax error: “(” unexpected”错误,通过bash ./virtualm 阅读全文
posted @ 2021-09-15 23:23 蔡军帅 阅读(417) 评论(0) 推荐(0) 编辑
  2021年9月14日
摘要: 题目描述 给定 n 个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为 1 。 求在该柱状图中,能够勾勒出来的矩形的最大面积。 示例 1: 输入:heights = [2,1,5,6,2,3]输出:10解释:最大的矩形为图中红色区域,面积为 10 示例 2: 输入: height 阅读全文
posted @ 2021-09-14 22:43 蔡军帅 阅读(50) 评论(0) 推荐(0) 编辑
  2021年9月12日
摘要: 参考视频:莫烦python https://mofanpy.com/tutorials/machine-learning/torch/torch-numpy/ 0.Pytorch 安装 官方网站安装链接:https://pytorch.org/get-started/locally/ 选择合适的选项 阅读全文
posted @ 2021-09-12 23:07 蔡军帅 阅读(64) 评论(0) 推荐(0) 编辑
  2021年8月27日
摘要: 参考视频:莫烦python https://mofanpy.com/tutorials/python-basic/multiprocessing/why/ 1.创建进程 # -*- coding: utf-8 -*- import multiprocessing as mp import threa 阅读全文
posted @ 2021-08-27 10:43 蔡军帅 阅读(148) 评论(0) 推荐(0) 编辑
  2021年8月26日
摘要: 参考视频:莫烦python https://mofanpy.com/tutorials/python-basic/threading/why/ 1.多线程简单介绍 # -*- coding: utf-8 -*- import threading def main(): print(threading 阅读全文
posted @ 2021-08-26 12:27 蔡军帅 阅读(222) 评论(0) 推荐(0) 编辑
摘要: https://www.bilibili.com/video/av51720348?p=5 阅读全文
posted @ 2021-08-26 12:04 蔡军帅 阅读(239) 评论(0) 推荐(0) 编辑
摘要: > x<-runif(50,0,2) > y<-runif(50,0,2) > plot(x,y,main="散点图",xlab="横坐标",ylab="纵坐标") > text(0.6,0.6,"text at (0.6,0.6)") > abline(h=.6,v=.6) > 阅读全文
posted @ 2021-08-26 12:04 蔡军帅 阅读(101) 评论(0) 推荐(0) 编辑
  2021年8月25日
摘要: 参考链接:莫烦python [https://mofanpy.com/tutorials/data-manipulation/np-pd/] 1 pandas 基本介绍 import pandas as pd import numpy as np s = pd.Series([1,3,6,np.na 阅读全文
posted @ 2021-08-25 18:14 蔡军帅 阅读(116) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 164 下一页