| | Given A,K, the definition A#B = ( Sum of all digits of A * Maximum digit of B )+Minimum digit of B and following formulas A A#A (A#A)#A (A#(A#A))#A Determine and return the minimal number of necessary # to generate K from A or return -1 if there is no possible solution at all. I am still looking for a solution to this. Any idea? |

