None of the TC is passing. Kindly help.
WA in Game theory 3
Hey @er.garganant
Please refer this https://ide.codingblocks.com/s/148075?_ga=2.80688599.1114558533.1583836599-890245095.1579188087
If your doubt is resolved please mark it as closed.
Hey @Aarnav-Jindal-1059677350830863
I tried to submit the code which you gave but it is also giving WA.
@er.garganant
I wouldn’t give you the solution directly
This is just to refer and understand what went wrong with your code. This code has correct approach but some wrong implementation. If you still can’t figure out the approach with this then I’ll tell you the solution. Best of luck !
@Aarnav-Jindal-1059677350830863 I compared my approach with yours and it looked quite similar. I am not able to spot where I went wrong. Kindly help.
@er.garganant
This is the correct code https://ide.codingblocks.com/s/190786.
Also I saw your code in finding divisors you’re only pushing “j” in Line 16 and not “j/i” as well. Thus factors are not complete.
Yup, that line 16 was the problem. Thanks for helping