Skip to content

Commit 2d9ea15

Browse files
authored
Merge pull request #891 from sir-gon/feature/markdownlint
Feature/markdownlint
2 parents a6fdbaa + 0c82346 commit 2d9ea15

11 files changed

Lines changed: 27 additions & 14 deletions

File tree

.github/workflows/markdown-lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ jobs:
3232
node-version: ${{ matrix.node-version }}
3333

3434
- name: Install dependencies
35-
run: npm install -g markdownlint-cli
35+
run: >
36+
npm install -g --ignore-scripts markdownlint-cli@0.47.0
37+
38+
- name: Test dependencies
39+
run: |
40+
markdownlint --version
3641
3742
- name: Lint
3843
run: >

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ WORKDIR ${WORKDIR}
1717

1818
RUN apk add --update --no-cache make nodejs npm \
1919
&& apk add --update --no-cache yamllint \
20-
&& npm install -g --ignore-scripts markdownlint-cli
20+
&& npm install -g --ignore-scripts markdownlint-cli@0.47.0
2121

2222
# [!TIP] Use a bind-mount to "/app" to override following "copys"
2323
# for lint and test against "current" sources in this stage

docs/hackerrank/implementation/countApplesAndOranges.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ In the diagram below:
1919
fell $ d $ units to the tree's left, and a positive value of $ d $ means it falls
2020
$ d $ units to the tree's right.
2121

22-
Given the value of $ d $ for $ m $ apples and $ n $ oranges, determine how many apples
23-
and oranges will fall on Sam's house (i.e., in the inclusive range $ [s, t] $)?
22+
Given the value of $ d $ for $ m $ apples and $ n $ oranges, determine how many
23+
apples and oranges will fall on Sam's house (i.e., in the inclusive range
24+
$ [s, t] $)?
2425

2526
For example, Sam's house is between $ s = 7 $ and $ t = 10 $. The apple tree is
2627
located at $ a = 4 $ and the orange at $ b = 12 $. There are $ m = 3 $ apples

docs/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/ctci-ransom-note.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ The third line contains `n` space-separated strings, each `node[i]`.
4949

5050
- $ 1 \leq m, n \leq 30000 $
5151
- $ 1 \leq $ length of `magazine[i]` and `note[i]` $ \leq 5 $
52-
- Each word consists of English alphabetic letters (i.e., `a` to `z` and `A` to `Z`).
52+
- Each word consists of English alphabetic letters (i.e., `a` to `z` and `A`
53+
to `Z`).
5354

5455
## Sample Input 0
5556

docs/hackerrank/interview_preparation_kit/dictionaries_and_hashmaps/sherlock_and_anagrams-solution-notes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ in scientific notation, losing precision.
2727
This loss of precision can result in an erroneous result
2828
in the final calculation of permutations.
2929

30-
To avoid this problem, it is necessary to introduce large number handling using BigInt.
30+
To avoid this problem, it is necessary to introduce large number handling using
31+
BigInt.

docs/hackerrank/interview_preparation_kit/greedy_algorithms/angry-children.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,5 @@ max(1,2,3,4) - min(1,2,3,4) = 4 - 1 = 3
141141

142142
## Explanation 2
143143

144-
Here `k = 2`. `arr' = [2, 2]` or `arr' = [1, 1]` give the minimum unfairness of `0`.
144+
Here `k = 2`. `arr' = [2, 2]` or `arr' = [1, 1]` give the minimum unfairness of
145+
`0`.

docs/hackerrank/interview_preparation_kit/greedy_algorithms/greedy-florist.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ the original price of each flower.
7474

7575
## Explanation 0
7676

77-
There are `n = 3` flowers with costs `c = [2, 5, ,6]` and `k = 3` people in the group.
77+
There are `n = 3` flowers with costs `c = [2, 5, ,6]` and `k = 3` people in
78+
the group.
7879
If each person buys one flower,
7980
the total cost of prices paid is `2 + 5 + 6 = 13` dollars.
8081
Thus, we print `13` as our answer.

docs/hackerrank/projecteuler/euler002.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
- Difficulty: #easy
44
- Category: #ProjectEuler+
55

6-
Each new term in the Fibonacci sequence is generated by adding the previous two terms.
6+
Each new term in the Fibonacci sequence is generated by adding the previous
7+
two terms.
78
By starting with $ 1 $ and $ 2 $, the first $ 10 $ terms will be:
89

910
$$ 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 $$

docs/hackerrank/projecteuler/euler003-solution-notes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ The first solution, using the algorithm taught in school, is:
3333
> Using some test entries, quickly broke the solution at all. So, don't use it.
3434
> This note is just to record the failed idea.
3535
36-
Since by going through and proving the divisibility of a number $ i $ up to $ n $
37-
there are also "remainder" numbers that are also divisible by their opposite,
38-
let's call it $ j $.
36+
Since by going through and proving the divisibility of a number $ i $ up to
37+
$ n $ there are also "remainder" numbers that are also divisible by their
38+
opposite, let's call it $ j $.
3939

4040
At first it seemed attractive to test numbers $ i $ up to half of $ n $ then
4141
test whether $ i $ or $ j $ are prime. 2 problems arise:

docs/projecteuler/problem0002.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# [Even Fibonacci numbers](https://projecteuler.net/problem=2)
22

3-
Each new term in the Fibonacci sequence is generated by adding the previous two terms.
3+
Each new term in the Fibonacci sequence is generated by adding the previous two
4+
terms.
45
By starting with 1 and 2, the first 10 terms will be:
56

67
$ 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... $

0 commit comments

Comments
 (0)