Skip to content

Commit b058dec

Browse files
authored
Merge pull request #838 from sir-gon/feature/markdownlint
Feature/markdownlint
2 parents 9bdf8ec + 8eccbf7 commit b058dec

File tree

12 files changed

+25
-14
lines changed

12 files changed

+25
-14
lines changed

.github/workflows/markdown-lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
with:
2525
node-version: 24.x
2626
- name: Install dependencies
27-
run: npm install -g markdownlint-cli
27+
run: >
28+
npm install -g --ignore-scripts markdownlint-cli@0.47.0
2829
2930
- name: Lint
3031
run: >

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ WORKDIR ${WORKDIR}
2727

2828
RUN apk add --update --no-cache make nodejs npm \
2929
&& apk add --update --no-cache yamllint \
30-
&& npm install -g --ignore-scripts markdownlint-cli \
31-
&& npm install -g --ignore-scripts markdownlint-cli prettier
30+
&& npm install -g --ignore-scripts markdownlint-cli@0.47.0 \
31+
&& npm install -g --ignore-scripts prettier@3.7.4
3232

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

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/graphs/roads_and_libraries-solution-notes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ implemented in C++ that are a little more difficult to understand.
1616

1717
Even so, in the solution found in the article (*), it will not work directly by
1818
copying and pasting the code since the author (apparently on purpose) wrote
19-
wrong the calculation formula by exchanging the cost variables of libraries and paths.
19+
wrong the calculation formula by exchanging the cost variables of libraries and
20+
paths.
2021

2122
## Solution sources
2223

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 unfairness
144+
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 in the
78+
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/interview_preparation_kit/linked_lists/insert-a-node-into-a-sorted-doubly-linked-list.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ Complete the sortedInsert function in the editor below.
2121

2222
sortedInsert has two parameters:
2323

24-
- DoublyLinkedListNode pointer head: a reference to the head of a doubly-linked list
24+
- DoublyLinkedListNode pointer head: a reference to the head of a doubly-linked
25+
list
2526

2627
- int data: An integer denoting the value of the `data` field for the
27-
DoublyLinkedListNode you must insert into the list.
28+
DoublyLinkedListNode you must insert into the list.
2829

2930
## Returns
3031

docs/hackerrank/interview_preparation_kit/trees/binary-search-tree-lowest-common-ancestor.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ Node `3` is the lowest node which has nodes and as descendants.
3535
## Function Description
3636

3737
Complete the function lca in the editor below.
38-
It should return a pointer to the lowest common ancestor node of the two values given.
38+
It should return a pointer to the lowest common ancestor node of the two values
39+
given.
3940

4041
lca has the following parameters:
4142

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 two
7+
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ 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 $
36+
Since by going through and proving the divisibility of a number $ i $ up to
37+
$ n $
3738
there are also "remainder" numbers that are also divisible by their opposite,
3839
let's call it $ j $.
3940

0 commit comments

Comments
 (0)