leetcode笔记
心得
js
定义一个全为0的数组
let data = new Array(26)
for (let i = 0; i < 26; i++) {
data[i] = 0
}sort()排序
nums.sort((a, b) => a - b);数组第一层深拷贝
~~

go
for循环
转换
int转string
int64转string
string转int
string转int64
排序
json序列化和反序列化
深拷贝
pop
python
排序
逆序for
一些算法
清除二进制位中最右边的1
位运算判断奇偶
交换两个变量的值
两分法
异或
中序遍历
回溯

Last updated