Skip to content

Commit bc51696

Browse files
authored
Merge branch 'master' into src/main/java/com/thealgorithms/divideandconquer/ClosestPair.java
2 parents 13cac5e + 500c526 commit bc51696

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

src/main/java/com/thealgorithms/divideandconquer/SkylineAlgorithm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public int getY() {
161161
* function dominates the argument point.
162162
*
163163
* @param p1 the point that is compared
164-
* @return true if the point wich calls the function dominates p1 false
164+
* @return true if the point which calls the function dominates p1 false
165165
* otherwise.
166166
*/
167167
public boolean dominates(Point p1) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.thealgorithms.maths;
22

33
/*
4-
* Java program for Binomial Cofficients
5-
* Binomial Cofficients: A binomial cofficient C(n,k) gives number ways
4+
* Java program for Binomial Coefficients
5+
* Binomial Coefficients: A binomial coefficient C(n,k) gives number ways
66
* in which k objects can be chosen from n objects.
77
* Wikipedia: https://en.wikipedia.org/wiki/Binomial_coefficient
88
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public final class SieveOfAtkin {
1515

1616
private SieveOfAtkin() {
17-
// Utlity class; prevent instantiation
17+
// Utility class; prevent instantiation
1818
}
1919

2020
/**

src/main/java/com/thealgorithms/matrix/RotateMatrixBy90Degrees.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static void printMatrix(int[][] arr) {
4040
}
4141

4242
/**
43-
* Class containing the algo to roate matrix by 90 degree
43+
* Class containing the algo to rotate matrix by 90 degree
4444
*/
4545
final class Rotate {
4646
private Rotate() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import java.util.Scanner;
44

55
/**
6-
* This file contains an implementation of BANKER'S ALGORITM Wikipedia:
6+
* This file contains an implementation of BANKER'S ALGORITHM Wikipedia:
77
* https://en.wikipedia.org/wiki/Banker%27s_algorithm
88
*
99
* The algorithm for finding out whether or not a system is in a safe state can

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.thealgorithms.others;
22

33
/**
4-
* Guass Legendre Algorithm ref
4+
* Gauss Legendre Algorithm ref
55
* https://en.wikipedia.org/wiki/Gauss–Legendre_algorithm
66
*
77
* @author AKS1996

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
@@ -97,7 +97,7 @@ static void suggestionsRec(TrieNode root, String currPrefix) {
9797
}
9898
}
9999

100-
// Fucntion to print suggestions for
100+
// Function to print suggestions for
101101
// given query prefix.
102102
static int printAutoSuggestions(TrieNode root, final String query) {
103103
TrieNode pCrawl = root;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ private IterativeFloodFill() {
3232
* Iteratively fill the 2D image with new color
3333
*
3434
* @param image The image to be filled
35-
* @param x The x co-ordinate at which color is to be filled
36-
* @param y The y co-ordinate at which color is to be filled
35+
* @param x The x coordinate at which color is to be filled
36+
* @param y The y coordinate at which color is to be filled
3737
* @param newColor The new color which to be filled in the image
3838
* @param oldColor The old color which is to be replaced in the image
3939
* @see <a href=https://www.geeksforgeeks.org/dsa/flood-fill-algorithm>FloodFill BFS<a/>
@@ -86,8 +86,8 @@ private static class Point {
8686
* Checks if a pixel should be skipped during flood fill operation.
8787
*
8888
* @param image The image to get boundaries
89-
* @param x The x co-ordinate of pixel to check
90-
* @param y The y co-ordinate of pixel to check
89+
* @param x The x coordinate of pixel to check
90+
* @param y The y coordinate of pixel to check
9191
* @param oldColor The old color which is to be replaced in the image
9292
* @return {@code true} if pixel should be skipped, else {@code false}
9393
*/

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public abstract class MemoryManagementAlgorithms {
1616
* blocks available.
1717
* @param sizeOfProcesses: an int array that contains the sizes of the
1818
* processes we need memory blocks for.
19-
* @return the ArrayList filled with Integers repressenting the memory
19+
* @return the ArrayList filled with Integers representing the memory
2020
* allocation that took place.
2121
*/
2222
public abstract ArrayList<Integer> fitProcess(int[] sizeOfBlocks, int[] sizeOfProcesses);
@@ -91,7 +91,7 @@ private static int findBestFit(int[] blockSizes, int processSize) {
9191
* blocks available.
9292
* @param sizeOfProcesses: an int array that contains the sizes of the
9393
* processes we need memory blocks for.
94-
* @return the ArrayList filled with Integers repressenting the memory
94+
* @return the ArrayList filled with Integers representing the memory
9595
* allocation that took place.
9696
*/
9797
public ArrayList<Integer> fitProcess(int[] sizeOfBlocks, int[] sizeOfProcesses) {
@@ -149,7 +149,7 @@ private static int findWorstFit(int[] blockSizes, int processSize) {
149149
* blocks available.
150150
* @param sizeOfProcesses: an int array that contains the sizes of the
151151
* processes we need memory blocks for.
152-
* @return the ArrayList filled with Integers repressenting the memory
152+
* @return the ArrayList filled with Integers representing the memory
153153
* allocation that took place.
154154
*/
155155
public ArrayList<Integer> fitProcess(int[] sizeOfBlocks, int[] sizeOfProcesses) {
@@ -201,7 +201,7 @@ private static int findFirstFit(int[] blockSizes, int processSize) {
201201
* blocks available.
202202
* @param sizeOfProcesses: an int array that contains the sizes of the
203203
* processes we need memory blocks for.
204-
* @return the ArrayList filled with Integers repressenting the memory
204+
* @return the ArrayList filled with Integers representing the memory
205205
* allocation that took place.
206206
*/
207207
public ArrayList<Integer> fitProcess(int[] sizeOfBlocks, int[] sizeOfProcesses) {
@@ -262,7 +262,7 @@ private int findNextFit(int[] blockSizes, int processSize) {
262262
* blocks available.
263263
* @param sizeOfProcesses: an int array that contains the sizes of the
264264
* processes we need memory blocks for.
265-
* @return the ArrayList filled with Integers repressenting the memory
265+
* @return the ArrayList filled with Integers representing the memory
266266
* allocation that took place.
267267
*/
268268
public ArrayList<Integer> fitProcess(int[] sizeOfBlocks, int[] sizeOfProcesses) {

src/main/java/com/thealgorithms/strings/Pangram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static boolean isPangram(String s) {
6060
}
6161

6262
/**
63-
* Checks if a String is Pangram or not by checking if each alhpabet is present or not
63+
* Checks if a String is Pangram or not by checking if each alphabet is present or not
6464
*
6565
* @param s The String to check
6666
* @return {@code true} if s is a Pangram, otherwise {@code false}

0 commit comments

Comments
 (0)