1st | 2nd | 3rd | 4th | 5th | |
1 | 6 | 5 | 4 | 3 | 2 |
2 | 5 | 4 | 3 | 6 | 1 |
3 | 4 | 6 | (2 | 1) | 5 |
4 | 3 | (2 | 1) | 5 | 6 |
5 | (2 | 1) | 6 | 4 | 3 |
6 | 1 | 3 | 5 | 2 | 4 |
Isn't that an illegal sollution? I put brackets around 3 matches that are the same. Or am I just not getting the problem?
it seems like dynamic programming problem but I'm not quite sure it is. Maybe try to figure out how to make 6 disjoint functions from with input and output the numbers within your pool?