mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-28 06:55:02 +08:00
Fix typos in comments (#2354)
This commit is contained in:
@ -7,7 +7,7 @@ public class PalindromePrime {
|
||||
public static void main(String[] args) { // Main funtion
|
||||
Scanner in = new Scanner(System.in);
|
||||
System.out.println("Enter the quantity of First Palindromic Primes you want");
|
||||
int n = in.nextInt(); // Input of how many first pallindromic prime we want
|
||||
int n = in.nextInt(); // Input of how many first palindromic prime we want
|
||||
functioning(n); // calling function - functioning
|
||||
in.close();
|
||||
}
|
||||
|
@ -3,8 +3,8 @@ import java.util.*;
|
||||
public class WordBoggle {
|
||||
|
||||
/**
|
||||
* O(nm * 8^s + ws) time where n=width of boggle board, m=height of boggle board, s=length of
|
||||
* longest word in string array, w= length of string array, 8 is due to 8 explorable neighbours
|
||||
* O(nm * 8^s + ws) time where n = width of boggle board, m = height of boggle board, s = length of
|
||||
* longest word in string array, w = length of string array, 8 is due to 8 explorable neighbours
|
||||
* O(nm + ws) space.
|
||||
*/
|
||||
public static List<String> boggleBoard(char[][] board, String[] words) {
|
||||
|
Reference in New Issue
Block a user