Skip to content

Commit e1ec661

Browse files
Yulv-gitpoyea
andauthored
Fix some typos (TheAlgorithms#6113)
* Fix some typos. * Update volume.py Co-authored-by: John Law <[email protected]>
1 parent a7e4b23 commit e1ec661

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

ciphers/shuffled_shift_cipher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class ShuffledShiftCipher:
99
This algorithm uses the Caesar Cipher algorithm but removes the option to
1010
use brute force to decrypt the message.
1111
12-
The passcode is a a random password from the selection buffer of
12+
The passcode is a random password from the selection buffer of
1313
1. uppercase letters of the English alphabet
1414
2. lowercase letters of the English alphabet
1515
3. digits from 0 to 9

data_structures/stacks/dijkstras_two_stack_algorithm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
1111
THESE ARE THE ALGORITHM'S RULES:
1212
RULE 1: Scan the expression from left to right. When an operand is encountered,
13-
push it onto the the operand stack.
13+
push it onto the operand stack.
1414
1515
RULE 2: When an operator is encountered in the expression,
1616
push it onto the operator stack.

divide_and_conquer/inversions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
def count_inversions_bf(arr):
1313
"""
14-
Counts the number of inversions using a a naive brute-force algorithm
14+
Counts the number of inversions using a naive brute-force algorithm
1515
Parameters
1616
----------
1717
arr: arr: array-like, the list containing the items for which the number

maths/volume.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def vol_spheres_intersect(
3838
Calculate the volume of the intersection of two spheres.
3939
4040
The intersection is composed by two spherical caps and therefore its volume is the
41-
sum of the volumes of the spherical caps. First it calculates the heights (h1, h2)
42-
of the the spherical caps, then the two volumes and it returns the sum.
41+
sum of the volumes of the spherical caps. First, it calculates the heights (h1, h2)
42+
of the spherical caps, then the two volumes and it returns the sum.
4343
The height formulas are
4444
h1 = (radius_1 - radius_2 + centers_distance)
4545
* (radius_1 + radius_2 - centers_distance)

strings/manacher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def palindromic_string(input_string: str) -> str:
8888
now for a5 we will calculate the length of palindromic substring with center as a5 but
8989
can we use previously calculated information in some way?
9090
Yes, look the above string we know that a5 is inside the palindrome with center a3 and
91-
previously we have have calculated that
91+
previously we have calculated that
9292
a0==a2 (palindrome of center a1)
9393
a2==a4 (palindrome of center a3)
9494
a0==a6 (palindrome of center a3)

0 commit comments

Comments
 (0)