Dynamic programming practice problems
people.csail.mit.edu
people.csail.mit.edu
You're right that you'd store the solution string in a linked list, because they have O(1) non-destructive append. Or maybe there's another smarter and faster scheme than a linked list?
Edit: oh, you could just use an array for each column, and append the letter in-place. Or does this use more space because the prefixes are not shared among the different columns?
Also, give Mr. Roboto a valium so he loosens up. ;-)