Uva 10890 — Maze TLE
hi CF community. I was trying to solve this problem but i got a TLE.
My backtrack approach use bitmask to mark treasure already taken .
the constraint of the problem seems to be small so i didn't figure out why it gives TLE .
here my commented code .
CF Edu Round 189 Solution Discussion