Skip to content

Commit 3ebba74

Browse files
authored
Fix some typos (#3038)
1 parent 41be089 commit 3ebba74

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/main/java/com/thealgorithms/datastructures/lists/CircleLinkedList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public E remove(int pos) {
9090
}
9191
Node<E> destroy = before.next;
9292
E saved = destroy.value;
93-
// assigning the next reference to the the element following the element we want to remove...
93+
// assigning the next reference to the element following the element we want to remove...
9494
// the last element will be assigned to the head.
9595
before.next = before.next.next;
9696
// scrubbing

src/main/java/com/thealgorithms/dynamicprogramming/CoinChange.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static int change(int[] coins, int amount) {
4949
*
5050
* @param coins The list of coins
5151
* @param amount The amount for which we need to find the minimum number of
52-
* coins. Finds the the minimum number of coins that make a given value.
52+
* coins. Finds the minimum number of coins that make a given value.
5353
*/
5454
public static int minimumCoins(int[] coins, int amount) {
5555
// minimumCoins[i] will store the minimum coins needed for amount i

src/main/java/com/thealgorithms/maths/VectorCrossProduct.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* following Java Program calculates the direction ratios of the cross products
2929
* of two vector. The program uses a function, cross() for doing so. The
3030
* direction ratios for the first and the second vector has to be passed one by
31-
* one seperated by a space character.
31+
* one separated by a space character.
3232
*
3333
* Magnitude of a vector is the square root of the sum of the squares of the
3434
* direction ratios.

src/main/java/com/thealgorithms/misc/RangeInSortedArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static int getLessThan(int[] nums, int key, int left, int right) {
9090
if (nums[mid] > key) {
9191
right = mid - 1;
9292
} else if (nums[mid] <= key) {
93-
count = mid + 1; // Atleast mid+1 elements exist which are <= key
93+
count = mid + 1; // At least mid+1 elements exist which are <= key
9494
left = mid + 1;
9595
}
9696
}

src/main/java/com/thealgorithms/others/Implementing_auto_completing_features_using_trie.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static int printAutoSuggestions(TrieNode root,
135135
return -1;
136136
}
137137

138-
// If there are are nodes below last
138+
// If there are nodes below the last
139139
// matching character.
140140
if (!isLast) {
141141
String prefix = query;

0 commit comments

Comments
 (0)