Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Input:
- 52 81 43 81 18 85 71 87
- Longest subsequences:
- 43 81 85 87
- 52 81 85 87
- 52 81* 85 87
- * - second one
- Result of the algorithm:
- 1: (52,1)(43,1)(18,1)
- 2: (81,2)(71,3)
- 3: (85,2)
- 4: (87,2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement