hexo+nginx+阿里云服务器,搭建个人博客 之前写过一期使用 hexo+gitee 搭建个人博客 ,好处是不用自己买云服务器,也不用去买域名,方便简单。如果小伙伴们还没有服务器可以用之前的方法先把自己的博客搭起来,后面等云服务厂商搞活动再买个云服务器就行啦。 2022-04-08 hexo
JZ67 剪绳子 Solution 动态规划 对长度为i的绳子, 在j处的切割后, 接下来有两种选择: 继续切(i - j)长度的绳子, 则 ans = dp[i - j] * j 不切了, 则 ans = (i - j) * j 123456789101112131415class Solution {public: int cutRope(int number) { 2021-10-10 algo 数学 nowcoder
JZ66 机器人的运动范围 Solution 123456789101112131415161718192021222324252627class Solution {public: int movingCount(int threshold, int rows, int cols) { int res = 0; for (int i = 0; i < ro 2021-10-10 algo 回溯法 nowcoder
JZ65 矩阵中的路径 Solution 12345678910111213141516171819202122232425262728293031323334353637383940414243class Solution {private: // 先声明几个要用的变量,方便调用 vector<vector<int> > visited; int flag = 2021-10-10 algo nowcoder 深度优先搜索
JZ64 滑动窗口的最大值 Solution 构建单调队列 12345678910111213141516171819202122232425262728293031323334353637383940class Solution {public: class monotonicQueue { public: deque<int> que; // 借 2021-10-10 algo nowcoder 数组
JZ63 数据流中的中位数 Solution 建立两个堆 12345678910111213141516171819202122232425class Solution {public: priority_queue<int, vector<int>, less<int>> A; // 大根堆 priority_queue<int, vecto 2021-10-10 algo nowcoder 数组
JZ62 二叉搜索树的第k个结点 Solution 二叉搜索树,中序有序 123456789101112131415161718192021222324252627282930/*struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : v 2021-10-10 algo 二叉树 nowcoder
JZ61 序列化二叉树 Solution 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354/*struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right 2021-10-10 algo 二叉树 nowcoder
JZ60 把二叉树打印成多行 Solution 层序遍历 12345678910111213141516171819202122232425262728293031323334/*struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : 2021-10-10 algo 二叉树 nowcoder
JZ59 按之字形顺序打印二叉树 Solution 层序遍历 1234567891011121314151617181920212223242526272829303132333435363738/*struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : 2021-10-10 algo 二叉树 nowcoder