10513 - Bangladesh Sequences

All about problems in Volume 105. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Young20
New poster
Posts: 5
Joined: Fri Jul 06, 2007 6:39 pm

Post by Young20 »

I try to solve this like DFS.
When n is up to 13, it works pretty well. But n goes up 14 and 15, it get TLE.
I have to optimize my code in order to avoid TLE.

Could you give me some hint how I can prune unvisited node under this non bangladesh sequence?

Thanks
Post Reply

Return to “Volume 105 (10500-10599)”