leetcode day 704 amp

2023 联合省选游记 & 退役记

退役记请翻到页面底端的 后记 篇。 Day -1 不知道为什么这次提前两天就可以颓了,于是: (Loopy 20*20 Hard) 和同学一起解了有差不多两小时。 晚上看了场电影,打了会块。 Day 0 不知道为什么这次不能颓了。 早上和下午都在对着 QOJ 的模板题单刷板子。~~多项式系列模板卡常 ......
游记 2023 amp

前端&后端程序员必备的Linux基础知识

一 从认识操作系统开始 1.1 操作系统简介 我通过以下四点介绍什么操作系统: 操作系统(Operation System,简称OS)是管理计算机硬件与软件资源的程序,是计算机系统的内核与基石; 操作系统本质上是运行在计算机上的软件程序 ; 为用户提供一个与系统交互的操作界面 ; 操作系统分内核与外 ......
前端 程序员 基础知识 基础 程序

Meetup 直播预告|助力企业数字化转型,8 大微服务&容器开源实践亮点抢先看

随着数字化、智能化发展趋势不断加快,大中小型企业纷纷将企业“上云”提上日程,推动企业数字化转型。云时代下,企业需要新技术架构,使之更好地利用云计算优势,让业务更敏捷、成本更低、可伸缩性更强,云原生正逐步成为企业数字化转型的“最短路径”。 ......
容器 亮点 数字 Meetup 企业

scrum项目冲刺_Day4会议总结

今日团队任务: 图片转excel(5天) 前端开发(需团队风格统一) 调用接口(后端),json数据->excel 前后端连接 任烁玚(进行中) 图片转html(8天) 前端开发(需团队风格统一) 图片转为pdf(存储) pdf转html(调用接口)[html存储到数据库] 前后台数据同步 孟德昊( ......
会议 项目 scrum Day4 Day

day09 react完整手写

实现Hooks的数据结构 fiberNode中可用的字段: memoizedState updateQueue 实现useState 包括2方面工作: 实现mount时useState的实现 实现dispatch方法,并接入现有更新流程内 ......
react day 09

Day4

3.代码示例 #include<iostream> using namespace std; int main(){ int a1,a2,a3,a4,s,m; for(a1=0;a1<=9;a1++){ for(a3=0;a3<=9;a3++){ if(a1!=a3){ s=a1*1000+a1*1 ......
Day4 Day

自学Python爬虫笔记(day7)

环境python3.9版本及以上,开发工具pycharm requests的进阶使用: 案例一 模拟用户登录-处理cookie: # 登录 -> 得到cookie # 带着cookie 去请求到暑假url -> 书架上的内容 # 必须把上面两个操作连起来 # 我们可以使用session进行请求 -> ......
爬虫 笔记 Python day7 day

LeetCode 115. 不同的子序列

class Solution { public: long long f[1010][1010];//f[i][j]表示s前i个字符得到t前j个字符的所有方案 int numDistinct(string s, string t) { f[0][0]=1; int n=s.size(),m=t.si ......
序列 LeetCode 115

CNStack 云服务&云组件:打造丰富的云原生技术中台生态

目前,CNStack 已发布的云服务包括:多集群管理,分布式应用管理、分布式存储、虚拟化服务、云边协同、服务网格等,前面几篇文章中,也已陆陆续续的专文介绍了多集群、虚拟化、云边协同等云服务。后续也会有更多的云服务&云组件上架 CNStack 并专文介绍。 本文将针对云服务&云组件自身及其相关工具链进... ......
组件 生态 CNStack 技术 amp

day32| 122+55+45

122. 买卖股票的最佳时机 给你一个整数数组 prices ,其中 prices[i] 表示某支股票第 i 天的价格。 在每一天,你可以决定是否购买和/或出售股票。你在任何时候 最多 只能持有 一股 股票。你也可以先购买,然后在 同一天 出售。 返回 你能获得的 最大 利润 。 思路: 1. 可以 ......
day 122 32 55 45

day 6 牛顿迭代法求根

1.由f(x)计算f(x)的导数; 2.输入一个X,并让其作为X0进行计算; 3.反复迭代X,直到|x-x0|<=1e-5; 4.输出当前X; #include<iostream>#include<math.h>using namespace std; int main(){ float X,X0, ......
迭代法 day

[附CIFAR10炼丹记前编] CS231N assignment 2#5 _ pytorch 学习笔记 & 解析

pytorch 环境搭建 课程给你的环境当中, 可以直接用pytorch, 当时其默认是没有给你安装显卡支持的. 如果你只用CPU来操作, 那其实没什么问题, 但我的电脑有N卡, 就不能调用. 考虑到我已有pytorch环境(大致方法就是确认pytorch版本和对应的cuda版本安装cuda,再按照 ......
assignment pytorch 笔记 CIFAR 231N

14-static&继承

第一章 复习回顾 1.1 如何定义类 类的定义格式如下: 修饰符 class 类名 { // 1.成员变量(属性) // 2.成员方法 (行为) // 3.构造方法 (初始化类的对象数据的) } 例如: public class Student { // 1.成员变量 public String n ......
static amp 14

LeetCode/最大化城市的最小供电站数目

政府批准了可以额外建造 k 座供电站,你需要决定这些供电站分别应该建在哪里,这些供电站与已经存在的供电站有相同的供电范围。 给你两个整数 r 和 k ,如果以最优策略建造额外的发电站,返回所有城市中,最小供电站数目的最大值是多少。 ###一. 二分法+前缀和+贪心 分析:最大化最小值,首先考虑使用二 ......
供电站 数目 LeetCode 城市

macOS Finder move & cut & copy & paste file All In One

macOS Finder move & cut & copy & paste file All In One 快捷键 Mac 键盘快捷键 剪切、拷贝、粘贴和其他常用快捷键 Command-X:剪切所选项并拷贝到剪贴板。 Command-C:将所选项拷贝到剪贴板。这同样适用于“访达”中的文件。 Com... ......
amp Finder macOS paste copy

Day3

3.代码示例 #include<iostream> using namespace std; int main(){ int year,month,day,sum,s=0,i,q; cin>>year>>month>>day; int a[13]={0,31,28,31,30,31,30,31,31 ......
Day3 Day

团队项目Scrum冲刺-day3

| 这个作业属于哪个课程 | 2023软件工程—双学位 | | | | | 这个作业要求在哪里 | 团队作业4——项目冲刺 | | 这个作业目标 | 团队项目Scrum冲刺-day3 | 1.会议 1.1昨日已完成工作 | 队员 | 任务 | | | | | 翟张博、沈炜杰 | 完善用户登录界面,并 ......
团队 项目 Scrum day3 day

leetcode-1337-easy

The K Weakest Rows in a Matrix You are given an m x n binary matrix mat of 1's (representing soldiers) and 0's (representing civilians). The soldiers ......
leetcode 1337 easy

leetcode-1342-easy

Number of Steps to Reduce a Number to Zero Given an integer num, return the number of steps to reduce it to zero. In one step, if the current number i ......
leetcode 1342 easy

leetcode-1360-easy

Number of Days Between Two Dates Write a program to count the number of days between two dates. The two dates are given as strings, their format is YY ......
leetcode 1360 easy

leetcode-766-easy

Toeplitz Matrix Given an m x n matrix, return true if the matrix is Toeplitz. Otherwise, return false. A matrix is Toeplitz if every diagonal from top ......
leetcode easy 766

leetcode-806-easy

Number of Lines To Write String You are given a string s of lowercase English letters and an array widths denoting how many pixels wide each lowercase ......
leetcode easy 806

leetcode-812-easy

Largest Triangle Area Given an array of points on the X-Y plane points where points[i] = [xi, yi], return the area of the largest triangle that can be ......
leetcode easy 812

leetcode-830-easy

Positions of Large Groups In a string s of lowercase letters, these letters form consecutive groups of the same character. For example, a string like ......
leetcode easy 830

leetcode-844-easy

Backspace String Compare Given two strings s and t, return true if they are equal when both are typed into empty text editors. '#' means a backspace c ......
leetcode easy 844

leetcode-944-easy

Delete Columns To Make Sorted You are given an array of n strings strs, all of the same length. The strings can be arranged such that there is one on ......
leetcode easy 944

day45 (2023.4.14)

1.SQL函数的介绍 2.函数的分类 3.单行函数 4.单行函数(字符函数) 5.单行函数(数字函数) 6.单行函数(日期函数) 7.单行函数(转换函数) 8.单行函数(通用函数) 9.单行函数,小练习 day45(2023.4.14) ......
2023 day 45 14

scrum项目冲刺_Day3会议总结

今日团队任务: 图片转excel(5天) 前端开发(需团队风格统一) 调用接口(后端),json数据->excel 前后端连接 任烁玚(进行中) 图片转html(8天) 前端开发(需团队风格统一) 图片转为pdf(存储) pdf转html(调用接口)[html存储到数据库] 前后台数据同步 孟德昊( ......
会议 项目 scrum Day3 Day

docker_day04:Dockerfile docker私有仓库 dockercompose介绍 dockercompose部署 一件部署路飞项目

回顾 # 容器其他操作 docker start 容器id 启动容器 docker stop 容器id 停止容器 docker rm 容器id 删除容器 docker rm `docker ps -aq` 删除所有容器 docker exec -it 容器id 命令 进入容器 docker cp 宿 ......

代码随想录算法训练营Day01 | LeetCode704 二分查找、Leetcode27 移除元素

今日学习的视频和文章 代码随想录数组基础 复习基础知识 代码随想录 二分查找 代码随想录 移除元素 LeetCode704 二分查找 题目链接:704. 二分查找 - 力扣(Leetcode) 以前学二分查找的时候,真的一直搞不清楚怎么操作左边界和有边界,以及循环的终止条件是什么,总是自己慢慢调试出 ......
随想录 训练营 随想 算法 LeetCode