File tree 1 file changed +3
-3
lines changed
src/main/java/com/thealgorithms/dynamicprogramming
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public int getMaxMatching(int root, int parent) {
41
41
if (root < 0 || root >= graph .size ()) {
42
42
throw new IllegalArgumentException ("Invalid root: " + root );
43
43
}
44
- MaxMatching (root , parent );
44
+ maxMatching (root , parent );
45
45
return Math .max (dp [root ][0 ], dp [root ][1 ]);
46
46
}
47
47
@@ -52,7 +52,7 @@ public int getMaxMatching(int root, int parent) {
52
52
* @param node The index of the current node for which the matching is calculated.
53
53
* @param parent The index of the parent node (to avoid revisiting the parent node during recursion).
54
54
*/
55
- private void MaxMatching (int node , int parent ) {
55
+ private void maxMatching (int node , int parent ) {
56
56
dp [node ][0 ] = 0 ;
57
57
dp [node ][1 ] = 0 ;
58
58
@@ -61,7 +61,7 @@ private void MaxMatching(int node, int parent) {
61
61
if (adjNode == parent ) {
62
62
continue ;
63
63
}
64
- MaxMatching (adjNode , node );
64
+ maxMatching (adjNode , node );
65
65
sumWithoutEdge += Math .max (dp [adjNode ][0 ], dp [adjNode ][1 ]);
66
66
}
67
67
You can’t perform that action at this time.
0 commit comments