Skip to content

Commit 374938c

Browse files
authored
Fix typos (TheAlgorithms#2457)
1 parent a352a49 commit 374938c

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Conversions/OctalToHexadecimal.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ public static void main(String args[]) {
5151
// Take octal number as input from user in a string
5252
String oct = input.next();
5353

54-
// Pass the octal number to function and get converted deciaml form
54+
// Pass the octal number to function and get converted decimal form
5555
int decimal = octToDec(oct);
5656

57-
// Pass the decimla number to function and get converted Hex form of the number
57+
// Pass the decimal number to function and get converted Hex form of the number
5858
String hex = decimalToHex(decimal);
5959
System.out.println("The Hexadecimal equivalant is: " + hex);
6060
input.close();

DynamicProgramming/RegexMatching.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
**/
1010

1111
/**
12-
* For calculation Time and Space Complexity. Let N be length of src and M be length of pat
12+
* For calculation of Time and Space Complexity. Let N be length of src and M be length of pat
1313
**/
1414

1515
public class RegexMatching {
@@ -168,4 +168,4 @@ public static void main(String[] args) {
168168

169169
}
170170
// Memoization vs Tabulation : https://www.geeksforgeeks.org/tabulation-vs-memoization/
171-
// Question Link : https://practice.geeksforgeeks.org/problems/wildcard-pattern-matching/1
171+
// Question Link : https://practice.geeksforgeeks.org/problems/wildcard-pattern-matching/1

Sorts/BitonicSort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void bitonicSort(int a[], int low, int cnt, int dir) {
4444
// sort in descending order since dir here is 0
4545
bitonicSort(a, low + k, k, 0);
4646

47-
// Will merge wole sequence in ascending order
47+
// Will merge whole sequence in ascending order
4848
// since dir=1.
4949
bitonicMerge(a, low, cnt, dir);
5050
}

Sorts/PancakeSort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import static Sorts.SortUtils.*;
44

55
/**
6-
* Implementation of gnome sort
6+
* Implementation of pancake sort
77
*
88
* @author Podshivalov Nikita (https://github.com/nikitap492)
99
* @since 2018-04-10

0 commit comments

Comments
 (0)