I\'m attempting to write a program which is supposed to find the length of the longest sequence of cards (Crazy eights style) in a shuffled deck using dynamic programming.