I am trying to solve Alphacode http://www.spoj.com/problems/ACODEI am using Dynamic Programming to get the answer.Output to all the test cases if fine but I get SIGABRT after submission.
Solved - I was reading out of bounds.
You're reading outside the bounds of b.
I see that you have gotten AC. Please edit your post and remove your code.
I already got AC few days ago , but didn't knew how to delete or edit the post as Solved.
Click the ... beneath your post and then the pencil.