A normal set of dominoes — that is, one instance of every (unordered) pair of numbers from 0 to 6 — has been arranged irregularly into a rectangle; then the number in each square has been writen down and the dominoes themselves removed. Your task is to reconstruct the pattern by arranging the set of dominoes to match the provided array of numbers. Please note that each domino is a unique one and occurs only once in each puzzle.
SOLUTION TO DOMINOES 565