会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xzhws's blog
不因虚度年华而悔恨,不因碌碌无为而羞耻。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
2020年9月18日
leetcode 23. Merge k Sorted Lists (归并排序)
摘要: 23. Merge k Sorted Lists You are given an array of k linked-lists ...
阅读全文
posted @ 2020-09-18 10:33 xzhws
阅读(63)
评论(0)
推荐(0)
2020年9月16日
leetcode 32. Longest Valid Parentheses 84. Largest Rectangle in Histogram (栈的艺术)
摘要: 文章目录 32. Longest Valid Parentheses题意:思路:84. Largest Rectangle in ...
阅读全文
posted @ 2020-09-16 22:09 xzhws
阅读(29)
评论(0)
推荐(0)
2020年9月15日
leetcode 152. Maximum Product Subarray(动态规划,递推)
摘要: 152. Maximum Product Subarray Given an integer array nums, find th...
阅读全文
posted @ 2020-09-15 16:46 xzhws
阅读(61)
评论(0)
推荐(0)
2020年9月10日
leetcode 142. Linked List Cycle II(Floyd判圈算法、双指针)
摘要: 题目链接 leetcode 142. Linked List Cycle II 题目大意 给定一个链表,判断链表内部是否含有环。输出...
阅读全文
posted @ 2020-09-10 20:33 xzhws
阅读(53)
评论(0)
推荐(0)
2020年9月5日
洛谷普及场背包问题
摘要: 1. P1060 开心的金明 解题思路 最基本的01背包问题,如果不用优化成一维数组,那么用f(i,j)表示前i个商品花j元钱获得的...
阅读全文
posted @ 2020-09-05 19:33 xzhws
阅读(146)
评论(0)
推荐(0)
2020年8月31日
优先队列priority_queue排序
摘要: 优先队列默认大顶堆,即堆顶元素是最大值 改成小顶堆时: priority_queue<int,vector<int>, greater<int> > Q;//注意最后这里> >需要有空格,不然默认右移运算符>> 或者结构体重载operator排序, 注意排序方式与大小顶堆相反
阅读全文
posted @ 2020-08-31 15:32 xzhws
阅读(1200)
评论(0)
推荐(0)
2020年8月12日
linux查看文件夹和磁盘内存及服务器对应的ip
摘要: ####多进程统计cpu 数目 n_cpu = multiprocessing.cpu_count() print(n_cpu) 查看文件夹占用磁盘空间 du -h --max-depth=1 /path 查看磁盘空间 df -h 查看服务器对应的ip ip -a address (enp9s0)
阅读全文
posted @ 2020-08-12 22:39 xzhws
阅读(426)
评论(0)
推荐(0)
2020年5月29日
Test typora
摘要: import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt print('hello world\n') \[ y=exp(x^2)+z^3 \tag{1} \] 0. test where there is
阅读全文
posted @ 2020-05-29 22:27 xzhws
阅读(152)
评论(0)
推荐(0)
2020年5月27日
Linux 移动当前目录的前N个文件到指定文件夹
摘要: mv `ls | head -N` ./subfolder1/ 其中N表示需要移动的文件数目,subfolder1表示目标目录 参考...
阅读全文
posted @ 2020-05-27 20:07 xzhws
阅读(785)
评论(0)
推荐(0)
2019年12月26日
leetcode5. Longest Palindromic Substring(dp,manacher算法)
摘要: 题目链接 https://leetcode.com/problems/longest-palindromic-substring 解...
阅读全文
posted @ 2019-12-26 21:14 xzhws
阅读(45)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
公告