How did you see thatbrianfry713 wrote:Look at the output at https://ideone.com/sbz6py
There are only 19 values.

Many thanks, it is now accepted

How did you see thatbrianfry713 wrote:Look at the output at https://ideone.com/sbz6py
There are only 19 values.
I am getting this on my machine. Please see here https://ideone.com/sbz6pybrianfry713 wrote: There may be other valid outputs for this input, but your code is only printing 19 values.
Code: Select all
Max hits: 21
33
43
84
107
113
164
288
317
380
420
445
489
493
523
554
592
620
653
871
877
910
Thanks for replying brianfry713, please see the updated code with includes in my original post.brianfry713 wrote:That code won't compile without the includes.
http://en.wikipedia.org/wiki/Longest_in ... ubsequence