Refactor Code Style (#4151)

This commit is contained in:
Saurabh Rahate
2023-04-15 13:55:54 +05:30
committed by GitHub
parent 1ce907625b
commit 1dc388653a
100 changed files with 293 additions and 319 deletions

View File

@@ -8,7 +8,7 @@ class KMPSearch {
// create lps[] that will hold the longest
// prefix suffix values for pattern
int lps[] = new int[M];
int[] lps = new int[M];
int j = 0; // index for pat[]
// Preprocess the pattern (calculate lps[]
@@ -38,7 +38,7 @@ class KMPSearch {
return -1;
}
void computeLPSArray(String pat, int M, int lps[]) {
void computeLPSArray(String pat, int M, int[] lps) {
// length of the previous longest prefix suffix
int len = 0;
int i = 1;