
I fail only on the 3 and 19 test case...
Here it is.. http://www.z-trening.com/new/www/html/submit.php?subm_stat=1&submit=7100045863
some help ?

You tested 3 combination (rotation). I think it should be 6.

wow...witch are those 6 combination..
First I check if the first box can fit in the second. So if the values are D,S,V it becomes
S,V,D and one more time V,D,S. If it still can't fit. I check if the second can fit in the first with the same methods ?

these are 6 combinations
S V D
S D V
V S D
V D S
D V S
D S V

you must just sort numbers

Yes, Matteo. And for both boxes.

So...I have to find all the combination for both the boxes and then check one by one with the rest of others ?
And can you give me some example :)

First:
7 8 9
6 7 8
Second:
7 8 9
6 8 7