Skip to content

Commit 0f50210

Browse files
authored
Merge pull request #310 from sir-gon/feature/markdownlint
Feature/markdownlint
2 parents 6fd5a8e + 7da40b9 commit 0f50210

File tree

8 files changed

+16
-11
lines changed

8 files changed

+16
-11
lines changed

.github/workflows/markdown-lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ 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
3637
3738
- name: Lint
3839
run: >

Dockerfile

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

3333
RUN apk add --update --no-cache make nodejs npm \
3434
&& apk add --update --no-cache yamllint \
35-
&& npm install -g --ignore-scripts markdownlint-cli
35+
&& npm install -g --ignore-scripts markdownlint-cli@0.47.0
3636

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ You can run tests in the following ways:
8080
installed in your SO.
8181
- [Install and run with make](#install-and-run-using-make) require runtime tools
8282
and "make" installed in your SO.
83-
- [Install and run in Docker](#install-and-running-with-docker-) require Docker and
84-
docker-compose installed.
83+
- [Install and run in Docker](#install-and-running-with-docker-) require Docker
84+
and docker-compose installed.
8585
- (⭐️)
8686
[Install and in Docker with make](#install-and-running-with-docker--using-make)
8787
require docker-compose and make installed.

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`
53+
to `z` and `A` to `Z`).
5354

5455
## Sample Input 0
5556

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

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

141141
## Explanation 2
142142

143-
Here `k = 2`. `arr' = [2, 2]` or `arr' = [1, 1]` give the minimum unfairness of `0`.
143+
Here `k = 2`. `arr' = [2, 2]` or `arr' = [1, 1]` give the minimum
144+
unfairness of `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
78+
in 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:

0 commit comments

Comments
 (0)