通用 缩进两个空格 等号两边留有空格 文件名为 my-component 组件名 React 文件名:帕斯卡命名 MyComponents ESlint <Foo superLongParam="bar" anotherSuperLongParam="baz" /> <Foo bar="bar" / ...
分类:
其他好文 时间:
2021-01-13 11:16:51
阅读次数:
0
Merge Sorted Array (E) 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: The number of elements in ...
分类:
其他好文 时间:
2021-01-13 11:10:22
阅读次数:
0
问题: 给定一个由0~9组成的字符串,判断该字符串是否为一个可加字符串。 可加字符串:对字符串进行切分后,各切片构成的数字,除了前两个数字外,之后的数字都等于前两个之和。 ?? 注意:每个切片数字若不等于0,则不能以'0'开头。 Example 1: Input: "112358" Output: ...
分类:
其他好文 时间:
2021-01-13 11:01:24
阅读次数:
0
函数泛型 function join<T, P>(first: T, second: P) { return `${first}${second}`; } // 泛型虽然可以类型推断,但是还是建议明确写明类型。 join < number, string > (1, "2"); // 数组的形式 / ...
分类:
其他好文 时间:
2021-01-13 10:34:37
阅读次数:
0
1. Bad magic number in super-block 当尝试打开 /dev/sda3 时 找不到有效的文件系统超级块. https://blog.csdn.net/dn98201/article/details/78670278 ___________________________ ...
分类:
系统相关 时间:
2021-01-12 11:18:24
阅读次数:
0
记录几个坑 优化器在表行数比较少的时候 会使用全表扫描,会造成全表所有的行加锁,所以需要使用force index 强制使用索引 来实现gap-lock(间隙锁)的应用 next-lock 加锁 会锁住 第一个不满足条件行 例如下表 number有唯一索引 id name number 1 Jack ...
分类:
数据库 时间:
2021-01-12 11:15:53
阅读次数:
0
这场我是先用小号打的div3,然后凑了七题才交的div1,所以下面部分时间实际上div3AC的时间 Chef and Ants(1.2) Expected Number of SCCs(1.3) Guess the Tiling(1.8) Blackjack(1.2) And-Or Game(1.3 ...
分类:
其他好文 时间:
2021-01-12 10:37:14
阅读次数:
0
1、 #include <stdio.h> #define NUMBER 5 int main(void) { int i; int sum = 0; int a[NUMBER]; puts("please input the scores."); for (i = 0; i < NUMBER; i ...
分类:
编程语言 时间:
2021-01-12 10:33:53
阅读次数:
0
使用接口约束类型 interface Girl { name: string; age: number; bust: number; } const screenResume = (girl: Girl) => { girl.age < 24 && girl.bust >= 90 && consol ...
分类:
其他好文 时间:
2021-01-11 11:28:12
阅读次数:
0
给大家补充一个结构体的例子:下面TwoNumber就是一个形式上的结构体 ...
分类:
其他好文 时间:
2021-01-11 10:42:22
阅读次数:
0