上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: vector<pair<int, double>> dicesSum(int n) { // Write your code here vector<vector<double>> dp; dp.resize(n+1); int cnt = 1; for(auto& r: dp){ r.resize 阅读全文
posted @ 2021-03-27 19:11 rxh1999 阅读(39) 评论(0) 推荐(0)
摘要: class Solution { public: int lengthOfLongestSubstring(string s) { unordered_map<char, int> pre; int left, right; left = right = 0; int maxlen = 0; for 阅读全文
posted @ 2021-03-27 15:47 rxh1999 阅读(21) 评论(0) 推荐(0)
摘要: ```cpp //leetcode 912 //参考:算法导论 int partition(vector& p, int l, int r){ int x = p[r]; int i=l-1; for(int j=l;j& p, int l, int r){ if(l>=r) return; int 阅读全文
posted @ 2021-03-26 12:13 rxh1999 阅读(46) 评论(0) 推荐(0)
摘要: 情景: 解决: 关掉掉自己电脑上的IPFS客户端,重新连接成功 阅读全文
posted @ 2021-01-27 17:27 rxh1999 阅读(260) 评论(0) 推荐(0)
摘要: 解决:避免electron窗口以管理员权限执行 参考:https://github.com/electron/electron/issues/12460 阅读全文
posted @ 2020-08-28 23:23 rxh1999 阅读(568) 评论(0) 推荐(0)
摘要: 下载官方demohttps://github.com/electron/electron-quick-start 在index.html中添加一个按钮 尝试在renderer.js实现,点击按钮创建一个新窗口 直接运行会报错 解决办法: 在main.js中添加 nodeIntergration保证r 阅读全文
posted @ 2020-08-27 00:34 rxh1999 阅读(2179) 评论(0) 推荐(0)
摘要: 问题: 对于页面中存在的name='circleSVG'的标签,getElementsByNames无法获取 原因是: svg标签属于XML方言,不属于(X)HTML语言。而getElementsByNames只返回属于(X)HTML语言的标签 解决方法: svg标签外面套一个div元素,获取div 阅读全文
posted @ 2020-06-16 23:58 rxh1999 阅读(183) 评论(0) 推荐(0)
摘要: state中的isAllSelected已更新,但是被注释的代码不会触发渲染。如果有大佬知道原因,还请不吝赐教。 关于其他常见解决方法,可以参考:https://blog.csdn.net/qq_40259641/article/details/105275819 阅读全文
posted @ 2020-05-12 23:01 rxh1999 阅读(1894) 评论(0) 推荐(0)
摘要: this.setState((prevState) => { console.log("entry") let selected = this.state.selected selected.push(id) return { selected } }) 会触发控制台打印两次entry 因为js对象 阅读全文
posted @ 2020-05-11 23:59 rxh1999 阅读(1097) 评论(0) 推荐(0)
摘要: 单调栈就是要求栈内元素符合单调性 阅读全文
posted @ 2020-04-04 11:01 rxh1999 阅读(120) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 下一页