上一页 1 2 3 4 5 6 ··· 45 下一页
摘要: 思路分析 : dp[i][j][0] 表示到第 i 天,交易了 k 支股票,并且手上未持股的最大收益 dp[i][j][1] 表示到第 j 天,交易了 k 支股票,并且手上持股的最大收益 代码分析 : class Solution { public: int maxProfit(int k, vec 阅读全文
posted @ 2021-11-10 21:21 楼主好菜啊 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 谷歌学术镜像:https://sc.panda321.com/ p_value: https://www.graphpad.com/quickcalcs/binomial1.cfm 阅读全文
posted @ 2021-11-10 11:40 楼主好菜啊 阅读(24) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/edit-distance/ 思路分析: dp[i][j] 表示第一个串在 i 位置,第二个串在 j 位置时,两个串若想保持一致最小的操作次数 dp[i][j-1] 表示插入一个新的字符,dp[i-1][j] 表示删去一个字符,dp[ 阅读全文
posted @ 2021-11-09 21:57 楼主好菜啊 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 思路分析 : 最后的答案一定是介于 1~n+1 之间,那么就可以将不在这个范围的数都变为 n+1,对于每个位置的数,不断的交换到它应该所在的位置 参考代码: class Solution { public: int firstMissingPositive(vector<int>& nums) { 阅读全文
posted @ 2021-11-07 22:09 楼主好菜啊 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 代码: class Solution { public: long long get_prefix(long long prefix, long long n){ long long x = prefix; long long y = prefix + 1; long long sum = 0; w 阅读全文
posted @ 2021-11-05 22:30 楼主好菜啊 阅读(40) 评论(0) 推荐(0) 编辑
摘要: LR 求最好的w,b可以产生Training Data,定义 f_w,b=P_w,b(C1|X) 为对于一个实例类标签为C1的概率 其似然函数就是将所有的 f_w,b相乘 交叉熵用来度量 p 分布和 q 分布有多接近 阅读全文
posted @ 2021-10-05 20:47 楼主好菜啊 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 将网页发布到本地:https://blog.csdn.net/xiaolinlife/article/details/107549689 首先全局安装: npm install http-server -g 在 IDEA 或 VSCODE 中执行 在当前html目录下执行http-server,就启 阅读全文
posted @ 2021-09-14 14:20 楼主好菜啊 阅读(292) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-07-20 09:09 楼主好菜啊 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-07-15 00:51 楼主好菜啊 阅读(4) 评论(0) 推荐(1) 编辑
摘要: 推荐算法 : https://my.oschina.net/u/4000302/blog/3059760 阅读全文
posted @ 2021-06-16 17:03 楼主好菜啊 阅读(66) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 45 下一页