File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1000,7 +1000,7 @@ Com o objetivo de alcançar uma abrangência maior e encorajar mais pessoas a co
1000
1000
</a>
1001
1001
</td>
1002
1002
<td> <!-- C++ -->
1003
- <a href="./src/cpp/MaximoRecursivo .cpp">
1003
+ <a href="./src/cpp/MaximumRecursive .cpp">
1004
1004
<img align="center" height="25" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/cplusplus/cplusplus-original.svg" />
1005
1005
</a>
1006
1006
</td>
Original file line number Diff line number Diff line change 2
2
#include < vector>
3
3
4
4
5
- int max_recursivo (std::vector<int > nums, int n) {
5
+ int max_recursive (std::vector<int > nums, int n) {
6
6
7
7
if (n == 1 )
8
8
return nums[0 ];
9
9
else {
10
- int aux = max_recursivo (nums, n-1 );
10
+ int aux = max_recursive (nums, n-1 );
11
11
12
12
if (aux > nums[n-1 ])
13
13
return aux;
@@ -31,7 +31,7 @@ int main() {
31
31
}
32
32
std::cout << " }" << std::endl;
33
33
34
- std::cout << " Max = " << max_recursivo (nums, nums.size ()) << std::endl;
34
+ std::cout << " Max = " << max_recursive (nums, nums.size ()) << std::endl;
35
35
36
36
return 0 ;
37
37
}
You can’t perform that action at this time.
0 commit comments