Skip to main content
added 139 characters in body
Source Link
NoChance
  • 12.5k
  • 1
  • 23
  • 39

It is not obvious how we could associate a given arrangement with a score to know how good/bad it is. Here is one way based on your example (items are pulledto generate a solution, may or may not be optimal.First list colors with max. occurrences at the top. Then, pull items from top-most leftcell moving downwards and then to the right when a column has ended)

enter image description here

It is not obvious how we could associate a given arrangement with a score to know how good/bad it is. Here is one way based on your example (items are pulled from top-most left downwards and then right)

enter image description here

It is not obvious how we could associate a given arrangement with a score to know how good/bad it is. Here is one way based on your example to generate a solution, may or may not be optimal.First list colors with max. occurrences at the top. Then, pull items from top-most cell moving downwards and then to the right when a column has ended)

enter image description here

Source Link
NoChance
  • 12.5k
  • 1
  • 23
  • 39

It is not obvious how we could associate a given arrangement with a score to know how good/bad it is. Here is one way based on your example (items are pulled from top-most left downwards and then right)

enter image description here