Ad
  • Custom User Avatar
  • Default User Avatar

    Okay so I tried your code and it seems that for the test case (-y+11)(-55y-6) your answer is y^2-5y-66, which is wrong.
    The answer should be 55y^2-599y-66.
    I think maybe it's caused by the "-y" in the first bracket which doesn't have a number coefficient?
    By the way my test case doesn't include (y-11)(y+6).
    Please check your code again and let me know if there are any further problems.