Skip to content

Commit 5a68ba9

Browse files
chore: fix typos in some files (#7052)
Fix typos in some files
1 parent d126fd5 commit 5a68ba9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/main/java/com/thealgorithms/datastructures/lists/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ The `next` variable points to the next node in the data structure and value stor
2828
4. `CreateAndDetectLoop.java` : Create and detect a loop in a linked list.
2929
5. `DoublyLinkedList.java` : A modification of singly linked list which has a `prev` pointer to point to the previous node.
3030
6. `MergeKSortedLinkedlist.java` : Merges K sorted linked list with mergesort (mergesort is also the most efficient sorting algorithm for linked list).
31-
7. `RandomNode.java` : Selects a random node from given linked list and diplays it.
31+
7. `RandomNode.java` : Selects a random node from given linked list and displays it.
3232
8. `SkipList.java` : Data Structure used for storing a sorted list of elements with help of a Linked list hierarchy that connects to subsequences of elements.
3333
9. `TortoiseHareAlgo.java` : Finds the middle element of a linked list using the fast and slow pointer (Tortoise-Hare) algorithm.

src/main/java/com/thealgorithms/devutils/nodes/LargeTreeNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.Collection;
44

55
/**
6-
* {@link TreeNode} extension that holds a {@link Collection} of refrences to
6+
* {@link TreeNode} extension that holds a {@link Collection} of references to
77
* child Nodes.
88
*
99
* @param <E> The type of the data held in the Node.
@@ -18,7 +18,7 @@ public class LargeTreeNode<E> extends TreeNode<E> {
1818
private Collection<LargeTreeNode<E>> childNodes;
1919

2020
/**
21-
* Empty contructor.
21+
* Empty constructor.
2222
*/
2323
public LargeTreeNode() {
2424
super();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public int getCorrectMess() {
9595

9696
/**
9797
* Resets some of the object's values, used on the main function, so that it
98-
* can be re-used, in order not to waste too much memory and time, by
98+
* can be reused, in order not to waste too much memory and time, by
9999
* creating new objects.
100100
*/
101101
public void refactor() {
@@ -171,7 +171,7 @@ public void divideMessageWithP(boolean check) {
171171
* Once the message is transmitted, some of it's elements, is possible to
172172
* change from 1 to 0, or from 0 to 1, because of the Bit Error Rate (ber).
173173
* For every element of the message, a random double number is created. If
174-
* that number is smaller than ber, then the spesific element changes. On
174+
* that number is smaller than ber, then the specific element changes. On
175175
* the other hand, if it's bigger than ber, it does not. Based on these
176176
* changes. the boolean variable messageChanged, gets the value: true, or
177177
* false.

src/main/java/com/thealgorithms/searches/RowColumnWiseSorted2dArrayBinarySearch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* In this two pointers are taken, the first points to the 0th row and the second one points to end
1414
* column, and then the element corresponding to the pointers placed in the array is compared with
1515
* the target that either its equal, greater or smaller than the target. If the element is equal to
16-
* the target, the co-ordinates of that element is returned i.e. an array of the two pointers will
16+
* the target, the coordinates of that element is returned i.e. an array of the two pointers will
1717
* be returned, else if the target is greater than corresponding element then the pointer pointing
1818
* to the 0th row will be incremented by 1, else if the target is lesser than the corresponding
1919
* element then the pointer pointing to the end column will be decremented by 1. And if the element

src/main/java/com/thealgorithms/sorts/LinkListSort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static boolean isSorted(int[] p, int option) {
106106
// The given array and the expected array is checked if both are same then true
107107
// is displayed else false is displayed
108108
default:
109-
// default is used incase user puts a unauthorized value
109+
// default is used in case user puts a unauthorized value
110110
System.out.println("Wrong choice");
111111
}
112112
// Switch case is used to call the classes as per the user requirement

0 commit comments

Comments
 (0)