From 08130dd3d806a515694a888e907c5ba157562a67 Mon Sep 17 00:00:00 2001
From: mountdisk <mountdisk@icloud.com.>
Date: Fri, 16 Aug 2024 21:34:52 +0800
Subject: [PATCH] chore: remove repetitive words

Signed-off-by: mountdisk <mountdisk@icloud.com.>
---
 src/algorithms/sets/permutations/README.md      | 2 +-
 src/algorithms/string/z-algorithm/zAlgorithm.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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;