8000 update 2976 · githubniraj/Leetcode@d22ee01 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

8000
Appearance settings

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

src/main/java/com/fishercoder/solutions/thirdthousand/_2976.java

Lines changed: 3 additions & 3 deletions
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)
0