Code: Select all
AC
I got WA with my code. I'm not sure what's the problem of it. Can anyone help?
Update :
My algorithm was wrong that's why I'm getting WA. I tried a brute force method that will get all the possible transactions by permuting each transaction

After that I got WA
