In each step, instead of looking for the lowest cost, I look for the highest minimum cost of the whole path.
I'm in the right way, or not

with that input, output should be:kmhasan wrote:Try the following input:I believe that the output should be one line, your program will probably produce factorial(14) lines of output.Code: Select all
1 aaaaaaaaaaaaaa
Code: Select all
a
Code: Select all
aaaaaaaaaaaaaa