Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Conversions/OctalToHexadecimal.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public static void main(String args[]) {
// Take octal number as input from user in a string
String oct = input.next();

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

// Pass the decimla number to function and get converted Hex form of the number
// Pass the decimal number to function and get converted Hex form of the number
String hex = decimalToHex(decimal);
System.out.println("The Hexadecimal equivalant is: " + hex);
input.close();
Expand Down
4 changes: 2 additions & 2 deletions DynamicProgramming/RegexMatching.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
**/

/**
* For calculation Time and Space Complexity. Let N be length of src and M be length of pat
* For calculation of Time and Space Complexity. Let N be length of src and M be length of pat
**/

public class RegexMatching {
Expand Down Expand Up @@ -168,4 +168,4 @@ public static void main(String[] args) {

}
// Memoization vs Tabulation : https://www.geeksforgeeks.org/tabulation-vs-memoization/
// Question Link : https://practice.geeksforgeeks.org/problems/wildcard-pattern-matching/1
// Question Link : https://practice.geeksforgeeks.org/problems/wildcard-pattern-matching/1
2 changes: 1 addition & 1 deletion Sorts/BitonicSort.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void bitonicSort(int a[], int low, int cnt, int dir) {
// sort in descending order since dir here is 0
bitonicSort(a, low + k, k, 0);

// Will merge wole sequence in ascending order
// Will merge whole sequence in ascending order
// since dir=1.
bitonicMerge(a, low, cnt, dir);
}
Expand Down
2 changes: 1 addition & 1 deletion Sorts/PancakeSort.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static Sorts.SortUtils.*;

/**
* Implementation of gnome sort
* Implementation of pancake sort
*
* @author Podshivalov Nikita (https://github.com/nikitap492)
* @since 2018-04-10
Expand Down