加载中...

09 2024 档案

摘要:1.下载Wiztree 2. 阅读全文
posted @ 2024-09-27 19:31 liang302 阅读(9) 评论(0) 推荐(0)
摘要:贪心+回溯: 找某位的最小值的时候用set实现的二分 求hack #include <algorithm> #include <unordered_set> #include <vector> #include <iostream> using namespace std; // getMaxDig 阅读全文
posted @ 2024-09-22 01:27 liang302 阅读(190) 评论(0) 推荐(0)
摘要:class Solution { public: /** * Note: 类名、方法名、参数名已经指定,请勿修改 * * * * @param grid int整型 vector<vector<>> * @return int整型 */ int minPathSum(vector<vector<in 阅读全文
posted @ 2024-09-14 17:10 liang302 阅读(13) 评论(0) 推荐(0)
摘要:1ns=10^{-9}s 1ms=10^(-6)s 1ms=10^(-3)s 1ns范围:包括访问cpu寄存器速度,现在cpu的时钟周期 1-10ns:包括 l1和l2缓存访问 一些昂贵的cpu操作如分支错误预测惩罚 10-100ns:l3缓存 现代cpu的主内存访问 100-1000ns:linu 阅读全文
posted @ 2024-09-12 14:55 liang302 阅读(86) 评论(0) 推荐(0)
摘要:https://kpnhh4zsm6.feishu.cn/mindnotes/DVdobz4bhmMpkpn7fo5c15xzngh?from=from_copylink 阅读全文
posted @ 2024-09-10 11:28 liang302 阅读(29) 评论(0) 推荐(0)
摘要:让普通变量 long = 一个空的Long对象 public class UnboxingNpe { private static int add(int x, int y) { return x + y; } private static boolean compare(long x, long 阅读全文
posted @ 2024-09-08 00:25 liang302 阅读(26) 评论(0) 推荐(0)
摘要:使用java7的新api try(){}; 普通做法 private String traditionalTryCatch() throws IOException { // 1. 单一资源的关闭 // String line = null; // BufferedReader br = new B 阅读全文
posted @ 2024-09-08 00:11 liang302 阅读(10) 评论(0) 推荐(0)
摘要:提供一个简单刷题的飞书Excel模板 https://kpnhh4zsm6.feishu.cn/sheets/N4tlsx05PhrJaLtcJEmccfnfn9d 尽量写的简洁好背。 “想要背的快,除了多敲,优化逻辑,让思维固化没有其他办法”。提供一份简介的代码。 1.能不嵌套自增语句就不嵌套 2 阅读全文
posted @ 2024-09-02 16:57 liang302 阅读(124) 评论(0) 推荐(0)