-
CSS基础
选择器
-
左神算法笔记
1 时间复杂度和排序算法 1.1 交换两个数的写法 12345public void static swap(int[] arr, int i, int j) { arr[i] = arr[i] ^ arr[j]; arr[j] = a... -
React基础学习
1 jsx语法规则 定义虚拟dom时,不要写引号。 const vdom = <h1>lishan</h1> 标签中引入js表达式要用{} 样式的类名指定不要用class,要用className 内联样式要用style={... -
LeetCode Hot100
盛最多水的容器
https://leetcode.cn/problems/container-with-most-water/?envType=study-plan-v2&envId=top-100-liked
如果使用两层for
循环会导致超时。
使用双指针从左右边界向内收缩,依次缩减范围,直到两个指针相遇,具体收缩步骤: -
Hexo配置
插件安装
1
npm install hexo-asset-img --save
该插件可以将相对路径转换为绝对路径使得浏览器可以访问到。
|