Project Euler #170: Find the largest 0 to 9 pandigital that can be formed by concatenating products.

  • + 0 comments

    Note:

    "Notice that a[i] and b[i][j] are positive" means that b[] cannot be 0. (Allowing there to be a b=0 creates many more solutions and significatnly complicates things.)

    Also: The order of the b[] 's is important. You concatenate the products in the same order that you multply the a x b[j] which is crucial when deciding which solution to accept. You cant order b[] incrementally which I initially did.