上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: 完全可以的,只要方法对、持之以恒,练习后你一定能大幅追赶甚至超越那些从本科就一直打竞赛的同学。关键在于: 合理的学习曲线 刚开始时,你可能刷了几十道题才刚掌握一种套路;但是随着模式越来越多、方法越来越熟,后期你的学习效率会大幅提升。 大多数竞赛选手也是从零基础或弱基础起步,一步步积累,真正「炉火纯青 阅读全文
posted @ 2025-05-21 16:49 ijpq 阅读(152) 评论(0) 推荐(0)
摘要: 交换论证的一般步骤 定义“第 i 步”的贪心选择 明确你的贪心算法在第 i 步会选什么样的元素/操作,记作 \(g_i\)。 假设存在一个最优解 OPT 用 \((o_1, o_2, \dots, o_m)\) 表示它在各步的选择。 对第 i 步做区分 若 \(o_i = g_i\) 这一步两者一致 阅读全文
posted @ 2025-05-16 14:34 ijpq 阅读(194) 评论(0) 推荐(0)
摘要: 可以这样来理解“矩阵快速幂”的思路,它其实源自于任何“幂运算”都满足这样两条关键性质: 结合律:\((A^x)\times(A^y)=A^{x+y}\)。 平方技巧:\((A^x)^2=A^{2x}\)。 把要算的指数 \(t\) 用二进制展开: \[t = b_0\cdot2^0 + b_1\cd 阅读全文
posted @ 2025-05-14 16:32 ijpq 阅读(73) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/build-array-from-permutation/description/?envType=daily-question&envId=2025-05-06 KEY QUESTION Follow-up: Can you solve 阅读全文
posted @ 2025-05-06 23:04 ijpq 阅读(24) 评论(0) 推荐(0)
摘要: Today, I remembered a sentence written by Uncle Lin Nan: "No one will accompany you for a lifetime, so you must adapt to loneliness. No one will help 阅读全文
posted @ 2025-04-30 00:15 ijpq 阅读(32) 评论(0) 推荐(0)
摘要: I understand your frustration, and it's a common feeling when tackling complex problems like this. Finding these insights often comes down to a combin 阅读全文
posted @ 2024-10-14 18:27 ijpq 阅读(58) 评论(0) 推荐(0)
摘要: Principles for Writing Correct Recursive Functions in DFS Algorithms When implementing a Depth-First Search (DFS) algorithm using recursion, it's cruc 阅读全文
posted @ 2024-10-14 13:57 ijpq 阅读(86) 评论(0) 推荐(0)
摘要: as per this issue: https://github.com/pytorch/pytorch/issues/113743 阅读全文
posted @ 2024-07-22 11:47 ijpq 阅读(13) 评论(0) 推荐(0)
摘要: refer to this page to learn about the entire docs about contributing https://github.com/pytorch/pytorch/wiki/The-Ultimate-Guide-to-PyTorch-Contributio 阅读全文
posted @ 2024-07-11 21:59 ijpq 阅读(55) 评论(0) 推荐(0)
摘要: ::: index asm keyword, assembly language in C, inline assembly language, mixing assembly language and C ::: How to Use Inline Assembly Language in C C 阅读全文
posted @ 2024-07-06 14:24 ijpq 阅读(76) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 15 下一页