mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
style: enable MethodName in CheckStyle (#5182)
enabled: MethodName in CheckStyle
This commit is contained in:
committed by
GitHub
parent
ea4dc15a24
commit
295e7436b1
@@ -16,7 +16,7 @@ public final class LongestAlternatingSubsequence {
|
||||
}
|
||||
|
||||
/* Function to return longest alternating subsequence length*/
|
||||
static int AlternatingLength(int[] arr, int n) {
|
||||
static int alternatingLength(int[] arr, int n) {
|
||||
/*
|
||||
|
||||
las[i][0] = Length of the longest
|
||||
@@ -68,6 +68,6 @@ public final class LongestAlternatingSubsequence {
|
||||
int[] arr = {10, 22, 9, 33, 49, 50, 31, 60};
|
||||
int n = arr.length;
|
||||
System.out.println("Length of Longest "
|
||||
+ "alternating subsequence is " + AlternatingLength(arr, n));
|
||||
+ "alternating subsequence is " + alternatingLength(arr, n));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user