Please help, DP problem time limit exceeded on SPOJ (submission in Haskell)

Revision en2, by vasanthaganesh, 2016-09-27 12:19:25

I tried to solve WACHOVIA on SPOJ with Haskell and here is my submission. I am getting time limit exceeded. Please help.

Edit: I used ByteString instead of String, but it still fails.

Tags spoj, dynamic-programming, time limit exceeded, haskell

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English vasanthaganesh 2016-09-27 12:19:25 66 added the next try.
en1 English vasanthaganesh 2016-09-25 15:47:52 265 Initial revision (published)