摘要:
简介 二分查找经常搞不清楚边界问题,直接记录模板 code public class Solution extends VersionControl { public int firstBadVersion(int n) { int low = 1; int high = n; int mid; w
阅读全文
posted @ 2022-11-13 20:21
HDU李少帅
阅读(34)
推荐(0)
摘要:
简介 最近 无聊看了一下 数值解法 已知 $\frac{dy}{dx} = y$ 我们知道其有一个解析解为 $y = e^x$ 同时我们知道 其初值 $y(0) = 1$, x 的范围为 $0<= x <= 1$ 我们需要求解其数值解,也就是$y$ 值在 $0<= x <= 1$ 的分布 我们猜想显
阅读全文
posted @ 2022-11-13 10:46
HDU李少帅
阅读(187)
推荐(0)
摘要:
名词解释 git clean -f 清除untract file HEAD 表示当前版本 HEAD^ 表示上一个版本 HEAD^^ 上上一个版本 HEAD~100 上100个版本 git reset --hard HEAD^ 丢弃当前版本返回上一个版本 --soft 是将修改放回本地退回到commi
阅读全文
posted @ 2022-11-13 10:27
HDU李少帅
阅读(33)
推荐(0)
摘要:
简介 简单题 code class Solution { public Integer count = 0; public void dfs(StringBuffer time, int [] aws, int rlt, int maxNumber){ if(rlt >= maxNumber) re
阅读全文
posted @ 2022-11-05 09:46
HDU李少帅
阅读(31)
推荐(0)
摘要:
简介 如何寻求一个数组中的出现次数最多的书 虽然最开始想到了这个方法但是不知道如何去表达,grep就利用了这个算法 class Solution { public int majorityElement(int[] nums) { Integer candidate = null; int coun
阅读全文
posted @ 2022-11-04 23:01
HDU李少帅
阅读(32)
推荐(0)
摘要:
简介 杨辉三角 是一道简单题,可以通过类似一层推下一层的方式进行计算,但是好像看过一个题解, 采用的方式是组合数。本来想采用组合数,尝试了double溢出 尝试了long 溢出,尝试了BigDecimal leetcode 不识别,无奈之下尝试使用数组的方式并进行延迟计算的方式; code clas
阅读全文
posted @ 2022-11-03 23:19
HDU李少帅
阅读(30)
推荐(0)
摘要:
简介 如何写一个自己的注解?? 参考链接 https://www.cnblogs.com/satire/p/15066808.html
阅读全文
posted @ 2022-10-31 23:17
HDU李少帅
阅读(19)
推荐(0)
摘要:
简介 sonarqube 作为一款测试工具,可以为开发的代码保驾护航,一般的公司都会配置一个代码扫描,防止线上代码太拉跨 参考链接 1H 左右就可以看完 https://www.bilibili.com/video/BV1tR4y1F79q?p=17&spm_id_from=pageDriver&v
阅读全文
posted @ 2022-10-22 23:18
HDU李少帅
阅读(601)
推荐(0)
摘要:
简介 采用传统的梯度下降进行线性回归,线性函数 一般为 $$y = <w,x> + b$$ 的形式 code import random import torch from d2l import torch as d2l # 人造数据集 def synthetic_data(w, b, num_ex
阅读全文
posted @ 2022-10-16 16:50
HDU李少帅
阅读(58)
推荐(0)
摘要:
简介 相对于简单的spring支持的@corn,xxl-job 支持 动态修改等操作,由于有一个页面管理,方面业务人员操作相关功能 开箱即用demo 源代码 https://github.com/xuxueli/xxl-job 视频解说 https://www.bilibili.com/video/
阅读全文
posted @ 2022-10-02 09:25
HDU李少帅
阅读(480)
推荐(0)