Skip to content

Commit 0ae5dd8

Browse files
committed
Fix duplicated words in comments and test description
1 parent 758b93a commit 0ae5dd8

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/algorithms/image-processing/seam-carving/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ const findLowEnergySeam = (energyMap: EnergyMap, { w, h }: ImageSize): Seam => {
440440
}
441441
}
442442

443-
// Find the lowest energy energy seam.
443+
// Find the lowest energy seam.
444444
// Once we know where the tail is we may traverse and assemble the lowest
445445
// energy seam based on the "previous" value of the seam pixel metadata.
446446
const seam: Seam = [];

src/algorithms/image-processing/seam-carving/README.ru-RU.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ const findLowEnergySeam = (energyMap: EnergyMap, { w, h }: ImageSize): Seam => {
440440
}
441441
}
442442

443-
// Find the lowest energy energy seam.
443+
// Find the lowest energy seam.
444444
// Once we know where the tail is we may traverse and assemble the lowest
445445
// energy seam based on the "previous" value of the seam pixel metadata.
446446
const seam: Seam = [];

src/algorithms/image-processing/seam-carving/resizeImageWidth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const findLowEnergySeam = (energyMap, { w, h }) => {
170170
}
171171
}
172172

173-
// Find the lowest energy energy seam.
173+
// Find the lowest energy seam.
174174
// Once we know where the tail is we may traverse and assemble the lowest
175175
// energy seam based on the "previous" value of the seam pixel metadata.
176176
const seam = [];

src/algorithms/string/z-algorithm/zAlgorithm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function buildZArray(zString) {
4848
}
4949

5050
// Now we may calculate how many characters starting from current position
51-
// are are the same as the prefix. We may calculate it by difference between
51+
// are the same as the prefix. We may calculate it by difference between
5252
// right and left Z box boundaries.
5353
zArray[charIndex] = zBoxRightIndex - zBoxLeftIndex;
5454

src/data-structures/graph/__test__/Graph.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ describe('Graph', () => {
261261
expect(graph.getAllEdges()[1].getKey()).toBe(edgeAC.getKey());
262262
});
263263

264-
it('should should throw an error when trying to delete not existing edge', () => {
264+
it('should throw an error when trying to delete not existing edge', () => {
265265
function deleteNotExistingEdge() {
266266
const graph = new Graph();
267267

0 commit comments

Comments
 (0)