Code failing Test Cases
- If count >= 3 you are just printing first three factors instead of printing,
a = factors[0], b = factors[1], c = n/(a*b)
- If count == 1 and m >= 6,
a = factors[0], b = aa, c = n/(ab)
- if count == 2, and check whether a,b,c are distinct or not
a = factors[0], b = factors[1], c = n/(a*b)
- else no
1 Like
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
sir
- I have corrected point 1 as per your recommendation.
- m >= 6 i guess you meant occur and i have done the changes by removing power function.
- count will only be 2 if there are 2 distinct factor of m and the rest are done .
I need some more of your guidance as solution is still not getting accepted.
Yes, I meant occur.
- If count == 1 and occur >=6, you are distributing like this
a = f, b = f^2, c = f^3 then abc = f^6
So, if n = 2^10, then a = 2, b = 4, c = 8 but then abc = 2^6 != n
So, the correct way is:
a = factors[0], b = aa, c = n/(a b)
- Similarly if count == 2 then your distribution is correct but you are not checking whether a b c are distinct or not.
1 Like
Thank you so much sir for guiding me
1 Like