From f1ecbaf572d189664d00ea9a358a621a0fcc5308 Mon Sep 17 00:00:00 2001 From: Aqdas-7 <103257896+Aqdas-7@users.noreply.github.com> Date: Mon, 29 Aug 2022 01:29:54 +0530 Subject: [PATCH] largestPrimeFactor#14 Removed Blank Spaces --- challenges/C++/largest_prime_factor/largestprimefactor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)