Fix some typos (#3038)
This commit is contained in:
parent
41be089f6a
commit
3ebba74e04
@ -90,7 +90,7 @@ public class CircleLinkedList<E> {
|
||||
}
|
||||
Node<E> destroy = before.next;
|
||||
E saved = destroy.value;
|
||||
// assigning the next reference to the the element following the element we want to remove...
|
||||
// assigning the next reference to the element following the element we want to remove...
|
||||
// the last element will be assigned to the head.
|
||||
before.next = before.next.next;
|
||||
// scrubbing
|
||||
|
@ -49,7 +49,7 @@ public class CoinChange {
|
||||
*
|
||||
* @param coins The list of coins
|
||||
* @param amount The amount for which we need to find the minimum number of
|
||||
* coins. Finds the the minimum number of coins that make a given value.
|
||||
* coins. Finds the minimum number of coins that make a given value.
|
||||
*/
|
||||
public static int minimumCoins(int[] coins, int amount) {
|
||||
// minimumCoins[i] will store the minimum coins needed for amount i
|
||||
|
@ -28,7 +28,7 @@ package com.thealgorithms.maths;
|
||||
* following Java Program calculates the direction ratios of the cross products
|
||||
* of two vector. The program uses a function, cross() for doing so. The
|
||||
* direction ratios for the first and the second vector has to be passed one by
|
||||
* one seperated by a space character.
|
||||
* one separated by a space character.
|
||||
*
|
||||
* Magnitude of a vector is the square root of the sum of the squares of the
|
||||
* direction ratios.
|
||||
|
@ -90,7 +90,7 @@ public class RangeInSortedArray {
|
||||
if (nums[mid] > key) {
|
||||
right = mid - 1;
|
||||
} else if (nums[mid] <= key) {
|
||||
count = mid + 1; // Atleast mid+1 elements exist which are <= key
|
||||
count = mid + 1; // At least mid+1 elements exist which are <= key
|
||||
left = mid + 1;
|
||||
}
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ class Trieac {
|
||||
return -1;
|
||||
}
|
||||
|
||||
// If there are are nodes below last
|
||||
// If there are nodes below the last
|
||||
// matching character.
|
||||
if (!isLast) {
|
||||
String prefix = query;
|
||||
|
Loading…
Reference in New Issue
Block a user