Skip to content

Commit

Permalink
largestPrimeFactor#14
Browse files Browse the repository at this point in the history
Removed Blank Spaces
  • Loading branch information
Aqdas-7 authored Aug 28, 2022
1 parent 1e436e2 commit f1ecbaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions challenges/C++/largest_prime_factor/largestprimefactor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <bits/stdc++.h>
long long maxPrimeFactors(long long n)

long long maxPrimeFactors(long long n)
{
long long maxPrime = -1;
while (n % 2 == 0)
Expand Down Expand Up @@ -38,6 +38,5 @@ int main()
std::cin>>n;
std::cout << maxPrimeFactors(n) << std::endl;
}

// Time complexity: {O}(\sqrt{n})
// Auxiliary space: {O}(1)
// Auxiliary space: {O}(1)

0 comments on commit f1ecbaf

Please sign in to comment.