Skip to content

Commit d22ee01

Browse files
update 2976
1 parent a2bd76a commit d22ee01

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/com/fishercoder/solutions/thirdthousand

1 file changed

+3
-3
lines changed

Diff for: src/main/java/com/fishercoder/solutions/thirdthousand/_2976.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public static class Solution1 {
1616
* the shortest path in a weighted (non-negative) graph.
1717
*/
1818
public long minimumCost(String source, String target, char[] original, char[] changed, int[] cost) {
19-
int ALPHABET_SIZE = 26;
20-
List<int[]>[] graph = new ArrayList[ALPHABET_SIZE];
21-
for (int i = 0; i < ALPHABET_SIZE; i++) {
19+
int alphabetSize = 26;
20+
List<int[]>[] graph = new ArrayList[alphabetSize];
21+
for (int i = 0; i < alphabetSize; i++) {
2222
graph[i] = new ArrayList<>();
2323
}
2424
for (int i = 0; i < original.length; i++) {

0 commit comments

Comments
 (0)