执行 hexo g
的时候提示 hexo Cannot read property 'replace' of undefined
错误。
经过排查发现是因为一篇文章中包含 <img>
这个字符串导致的。
执行 hexo g
的时候提示 hexo Cannot read property 'replace' of undefined
错误。
经过排查发现是因为一篇文章中包含 <img>
这个字符串导致的。
首先,来熟悉几个概念
Package authors use PyPI to distribute their software.
PyPI是Python官方维护的软件仓库,包含众多Python使用的第三方插件。
PyPA是Python社区的一个官方团队,负责维护和Python软件打包相关的项目。
题目来源:https://leetcode.com/problems/sort-array-by-parity/
LeetCode官方题解及解析:905. Sort Array By Parity
题目难度:Easy
Given an array A
of non-negative integers, return an array consisting of all the even elements of A
, followed by all the odd elements of A
.
You may return any answer array that satisfies this condition.
Example 1:
1 | Input: [3,1,2,4] |
Note:
1 <= A.length <= 5000
0 <= A[i] <= 5000
题目来源:https://leetcode.com/problems/maximum-depth-of-binary-tree/
LeetCode官方题解及解析:104. Maximum Depth of Binary Tree
题目难度:Easy
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
Note: A leaf is a node with no children.
Example:
Given binary tree [3,9,20,null,null,15,7]
,
1 | 3 |
return its depth = 3.