diff --git a/challenges/C++/largest_prime_factor/largestprimefactor.cpp b/challenges/C++/largest_prime_factor/largestprimefactor.cpp index 53a0284..ff5abad 100644 --- a/challenges/C++/largest_prime_factor/largestprimefactor.cpp +++ b/challenges/C++/largest_prime_factor/largestprimefactor.cpp @@ -1,6 +1,6 @@ #include -long long maxPrimeFactors(long long n) +long long maxPrimeFactors(long long n) { long long maxPrime = -1; while (n % 2 == 0) @@ -38,6 +38,5 @@ int main() std::cin>>n; std::cout << maxPrimeFactors(n) << std::endl; } - // Time complexity: {O}(\sqrt{n}) -// Auxiliary space: {O}(1) \ No newline at end of file +// Auxiliary space: {O}(1)