Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install -g markdownlint-cli
run: >
npm install -g --ignore-scripts markdownlint-cli@0.47.0

- name: Lint
run: >
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ WORKDIR ${WORKDIR}

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

# [!TIP] Use a bind-mount to "/app" to override following "copys"
# for lint and test against "current" sources in this stage
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ You can run tests in the following ways:
installed in your SO.
- [Install and run with make](#install-and-run-using-make) require runtime tools
and "make" installed in your SO.
- [Install and run in Docker](#install-and-running-with-docker-) require Docker and
docker-compose installed.
- [Install and run in Docker](#install-and-running-with-docker-) require Docker
and docker-compose installed.
- (⭐️)
[Install and in Docker with make](#install-and-running-with-docker--using-make)
require docker-compose and make installed.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ The third line contains `n` space-separated strings, each `node[i]`.

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

## Sample Input 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ max(1,2,3,4) - min(1,2,3,4) = 4 - 1 = 3

## Explanation 2

Here `k = 2`. `arr' = [2, 2]` or `arr' = [1, 1]` give the minimum unfairness of `0`.
Here `k = 2`. `arr' = [2, 2]` or `arr' = [1, 1]` give the minimum
unfairness of `0`.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ the original price of each flower.

## Explanation 0

There are `n = 3` flowers with costs `c = [2, 5, ,6]` and `k = 3` people in the group.
There are `n = 3` flowers with costs `c = [2, 5, ,6]` and `k = 3` people
in the group.
If each person buys one flower,
the total cost of prices paid is `2 + 5 + 6 = 13` dollars.
Thus, we print `13` as our answer.
Expand Down
3 changes: 2 additions & 1 deletion docs/hackerrank/projecteuler/euler002.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- Difficulty: #easy
- Category: #ProjectEuler+

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

$$ 1, 2, 3, 5, 8, 13, 21, 34, 55, 89 $$
Expand Down
6 changes: 3 additions & 3 deletions docs/hackerrank/projecteuler/euler003-solution-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ The first solution, using the algorithm taught in school, is:
> Using some test entries, quickly broke the solution at all. So, don't use it.
> This note is just to record the failed idea.

Since by going through and proving the divisibility of a number $ i $ up to $ n $
there are also "remainder" numbers that are also divisible by their opposite,
let's call it $ j $.
Since by going through and proving the divisibility of a number $ i $ up to
$ n $ there are also "remainder" numbers that are also divisible by their
opposite, let's call it $ j $.

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