Skip to content

Commit 8cd126d

Browse files
committed
feat(book/linkedlist): linked lists techniques and common patterns
1 parent 0f13f90 commit 8cd126d

30 files changed

+945
-351
lines changed

.eslintrc.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
module.exports = {
22
extends: 'airbnb-base',
33
env: {
4-
jest: true
4+
jest: true,
55
},
6+
plugins: ['jest'],
67
globals: {
78
BigInt: true,
89
},
10+
11+
// check package.json for files to include
12+
// files: ['src/**/*.js', 'book/interview-questions/*.js'],
13+
914
rules: {
1015
// https://github.com/airbnb/javascript/issues/1089
1116

1217
// https://stackoverflow.com/a/35637900/684957
1318
// allow to add properties to arguments
14-
'no-param-reassign': [2, { 'props': false }],
19+
'no-param-reassign': [2, { props: false }],
1520

1621
// https://eslint.org/docs/rules/no-plusplus
1722
// allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
18-
'no-plusplus': [0, { 'allowForLoopAfterthoughts': true }],
23+
'no-plusplus': [0, { allowForLoopAfterthoughts: true }],
1924
'no-continue': [0],
2025

2126
// Allow for..of
2227
'no-restricted-syntax': [0, 'ForOfStatement'],
23-
}
28+
29+
// jest plugin
30+
// 'jest/no-disabled-tests': 'warn',
31+
'jest/no-focused-tests': 'error',
32+
'jest/no-identical-title': 'warn',
33+
'jest/valid-expect': 'warn',
34+
},
2435
};

book/content/part02/linked-list.asc

Lines changed: 291 additions & 12 deletions
Large diffs are not rendered by default.

book/images/Find-the-largest-sum.png

-418 Bytes
Loading
Loading

book/images/Words-Permutations.png

4.2 KB
Loading
137 KB
Loading

book/images/cll.png

70.5 KB
Loading
-3.69 KB
Loading
-1.42 KB
Loading
-1.38 KB
Loading

0 commit comments

Comments
 (0)