上一页 1 2 3 4 5 6 ··· 27 下一页

2025年1月26日

摘要: https://leetcode.cn/problems/unique-paths-ii/ class Solution { public: int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) { int m = obsta 阅读全文
posted @ 2025-01-26 18:25 TMatrix52 阅读(14) 评论(0) 推荐(0)
摘要: class Solution { public: int uniquePaths(int m, int n) { // 二维dp数组 vector<vector<int> >dp(m, vector<int>(n, 0)); //初始化 for (int j = 0; j<n; j++) { dp[ 阅读全文
posted @ 2025-01-26 17:59 TMatrix52 阅读(18) 评论(0) 推荐(0)

2025年1月25日

摘要: class Solution { public: int minCostClimbingStairs(vector<int>& cost) { // dp[i] 为选择下标为i的台阶向上爬,所需要的最低花费 // dp[i] = min(dp[i-2] + cost[i-2], dp[i-1] + 阅读全文
posted @ 2025-01-25 17:19 TMatrix52 阅读(21) 评论(0) 推荐(0)
摘要: class Solution { public: int climbStairs(int n) { // dp[i] 为到达第i个台阶所用的方法 // dp[i] = dp[i-1]+dp[i-2] 两种方法之和 // dp[0] = 0 // dp[1] = 1 // dp[2] = 2 // d 阅读全文
posted @ 2025-01-25 16:22 TMatrix52 阅读(17) 评论(0) 推荐(0)
摘要: https://leetcode.cn/problems/fibonacci-number/ // 递归的写法 // class Solution { // public: // int fib(int n) { // if (n==0) { // return 0; // } // if (n== 阅读全文
posted @ 2025-01-25 11:41 TMatrix52 阅读(14) 评论(0) 推荐(0)

2024年11月21日

摘要: https://chuna2.787528.xyz/zjdxr-up/p/17487524.html 阅读全文
posted @ 2024-11-21 19:55 TMatrix52 阅读(20) 评论(0) 推荐(0)

2024年7月16日

摘要: https://www.tensorflow.org/tutorials/text/transformer?hl=zh-cn 阅读全文
posted @ 2024-07-16 16:19 TMatrix52 阅读(20) 评论(0) 推荐(0)

2022年8月14日

摘要: https://blog.csdn.net/weixin_39126199/article/details/118785065 https://leetcode.cn/problems/search-insert-position/ class Solution { public: int sear 阅读全文
posted @ 2022-08-14 22:29 TMatrix52 阅读(39) 评论(0) 推荐(0)

2022年6月21日

摘要: https://blog.csdn.net/qq_14845119/article/details/80787753 阅读全文
posted @ 2022-06-21 20:02 TMatrix52 阅读(45) 评论(0) 推荐(0)

2021年7月28日

摘要: 什么是评估穿越? 在拿到样本数据之后,做了必要的清洗和采样之后,我们会将样本分为训练集(train)和测试集(test)(有时还会再分一份作为validation),我们会在训练集上训练出模型,然后在测试集上对模型的效果进行评估,具体来说,我们会计算各种指标出来,例如准确率、召回率、AUC,MAP等 阅读全文
posted @ 2021-07-28 19:23 TMatrix52 阅读(426) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 27 下一页

导航