diff --git a/src/algorithms/sets/permutations/README.md b/src/algorithms/sets/permutations/README.md
index 4b6a268adc..f58c4290d5 100644
--- a/src/algorithms/sets/permutations/README.md
+++ b/src/algorithms/sets/permutations/README.md
@@ -27,7 +27,7 @@ n * (n-1) * (n -2) * ... * 1 = n!
 ## Permutations with repetitions
 
 When repetition is allowed we have permutations with repetitions.
-For example the the lock below: it could be `333`.
+For example the lock below: it could be `333`.
 
 ![Permutation Lock](https://www.mathsisfun.com/combinatorics/images/combination-lock.jpg)
 
diff --git a/src/algorithms/string/z-algorithm/zAlgorithm.js b/src/algorithms/string/z-algorithm/zAlgorithm.js
index 4b96a4fcc6..57942522ab 100644
--- a/src/algorithms/string/z-algorithm/zAlgorithm.js
+++ b/src/algorithms/string/z-algorithm/zAlgorithm.js
@@ -48,7 +48,7 @@ function buildZArray(zString) {
       }
 
       // Now we may calculate how many characters starting from current position
-      // are are the same as the prefix. We may calculate it by difference between
+      // are the same as the prefix. We may calculate it by difference between
       // right and left Z box boundaries.
       zArray[charIndex] = zBoxRightIndex - zBoxLeftIndex;