I tried to implement traveling salesman code but it’s not working. Please check my code: https://ide.codingblocks.com/s/298677
My code for travelling salesman problem in not working
in place of (1<<i)&(mask)==0 write ((1<<i)&(mask))==0 and then try.
1 Like