In this program, you will check whether two dominoes match.
Because you can flip a tile, two tiles match if the number on the left or right matches the left or right on the other tile.
You should print all matches. First check a direct match, then try flipping tiles. But don’t flip a tile whose left and right numbers are the same. If there is no match, print "No match".
For example, with the tiles 1 3 and 4 3, print
1 3 3 4
Three of my tests are failing since there are duplicates of the print results. How would I go about to remove the duplicate?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here