Skip to content

Commit a99d2a3

Browse files
committed
Updated Maximo Recursivo to Maximum Recursive and README.md
1 parent abedd95 commit a99d2a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ Com o objetivo de alcançar uma abrangência maior e encorajar mais pessoas a co
10001000
</a>
10011001
</td>
10021002
<td> <!-- C++ -->
1003-
<a href="./src/cpp/MaximoRecursivo.cpp">
1003+
<a href="./src/cpp/MaximumRecursive.cpp">
10041004
<img align="center" height="25" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/cplusplus/cplusplus-original.svg" />
10051005
</a>
10061006
</td>

src/cpp/MaximoRecursivo.cpp renamed to src/cpp/MaximumRecursive.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
#include <vector>
33

44

5-
int max_recursivo(std::vector<int> nums, int n) {
5+
int max_recursive(std::vector<int> nums, int n) {
66

77
if(n == 1)
88
return nums[0];
99
else{
10-
int aux = max_recursivo(nums, n-1);
10+
int aux = max_recursive(nums, n-1);
1111

1212
if(aux > nums[n-1])
1313
return aux;
@@ -31,7 +31,7 @@ int main() {
3131
}
3232
std::cout << "}" << std::endl;
3333

34-
std::cout << "Max = " << max_recursivo(nums, nums.size()) << std::endl;
34+
std::cout << "Max = " << max_recursive(nums, nums.size()) << std::endl;
3535

3636
return 0;
3737
}

0 commit comments

Comments
 (0)