8000 GitHub Action to use codespell to find typos (#105) · Rastrian/Algorithms-Explanation@9778175 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9778175

Browse files
authored
GitHub Action to use codespell to find typos (TheAlgorithms#105)
* GitHub Action to use codespell to find typos https://github.com/codespell-project/codespell * codespell ./en/ * Fix typo discovered by codespell * Fix typo discovered by codespell * Fix typo discovered by codespell * Fix broken URL
1 parent 1b1af29 commit 9778175

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

.github/workflows/codespell.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: codespell
2+
on: [pull_request, push]
3+
jobs:
4+
codespell:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- run: python3 -m pip install codespell
9+
- run: codespell ./en/ # --ignore-words-list="" --skip=""

en/Dynamic Programming/Coin Change.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Let's say we have 3 coin types `[1,2,3]` and we want to change for `7` cents. So
4242
```
4343
4 ways to make 7 cents using value of 1 and 2. `{{1,1,1,1,1,1,1}, {1,1,1,1,1,2}, {1,1,1,2,2}, {1,2,2,2}}`
4444

45-
* For the final iteration (3rd iteration), we take a coin that has a value of 3. Like before, now all the columns that can be devided by 3 will store another new way. And the final result will be like:
45+
* For the final iteration (3rd iteration), we take a coin that has a value of 3. Like before, now all the columns that can be divided by 3 will store another new way. And the final result will be like:
4646
```
4747
[1, 1, 2, 3, 4, 5, 7, 8]
4848
```

en/Dynamic Programming/Longest Common Subsequence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ B 0 ? ? ? ?
4949
C 0 ? ? ? ?
5050
B 0 ? ? ? ?
5151
```
52-
Now we will start to fill our table from 1st row. Since `S[1] = A` and `T[1] = B`, the `dp[1][1]` will be tha maximal value of `dp[0][1] = 0` and `dp[1][0] = 0`. So `dp[1][1] = 0`. But now `S[2] = B = T[1]`, so `dp[1][2] = dp[0][1] + 1 = 1`. `dp[1][3]` is `1` since `A != C` and we pick `max{dp[1][2], dp[0][3]}`. And `dp[1][4] = dp[0][3] + 1 = 1`.
52+
Now we will start to fill our table from 1st row. Since `S[1] = A` and `T[1] = B`, the `dp[1][1]` will be the maximal value of `dp[0][1] = 0` and `dp[1][0] = 0`. So `dp[1][1] = 0`. But now `S[2] = B = T[1]`, so `dp[1][2] = dp[0][1] + 1 = 1`. `dp[1][3]` is `1` since `A != C` and we pick `max{dp[1][2], dp[0][3]}`. And `dp[1][4] = dp[0][3] + 1 = 1`.
5353
```
5454
# # A B C B
5555
# 0 0 0 0 0

en/Image Processing/Harris Detector.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ Given image $I$, $n\times n$ size Gaussian Kernel $G_{n\times n}$,
1515

1616
## Code Implementation Links
1717

18-
- [Python](https://github.com/TheAlgorithms/Python/blob/master/digital_image_processing/feature_detectors/harris.py)
18+
- [Python](https://github.com/TheAlgorithms/Python/blob/master/computer_vision/harriscorner.py)
1919

2020
## Reference
2121

22-
C. Harris and M. Stephens, “A Combined Corner and Edge Detector,” in *Procedings of the Alvey Vision Conference 1988*, Manchester, 1988, pp. 23.1-23.6.
23-
22+
C. Harris and M. Stephens, “A Combined Corner and Edge Detector,” in *Proceedings of the Alvey Vision Conference 1988*, Manchester, 1988, pp. 23.1-23.6.

0 commit comments

Comments
 (0)
0