An open API service indexing awesome lists of open source software.

https://github.com/pantelwar/daily-practice-color-theorem

Solve for number of possible combinations for color theorem
https://github.com/pantelwar/daily-practice-color-theorem

algorithm-challenges algorithms color-theorem

Last synced: 12 months ago
JSON representation

Solve for number of possible combinations for color theorem

Awesome Lists containing this project

README

          

# daily-practice-color-theorem

Color Theorem

Problem:


To fill the area with the colors in such a way that the adjacent areas should
not have the same color using color theorem.

Inputs:


Areas = ["A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9"] // a total of 9 Areas


AdjancentPairs = [
["A4", "A1"], ["A4", "A2"], ["A4", "A7"], ["A4", "A5"],
["A4", "A3"], ["A4", "A6"],
["A1", "A2"], ["A1", "A6"],
["A5", "A6"], ["A5", "A3"],
["A3", "A7"], ["A3", "A2"],
["A2", "A7"], ["A2", "A6"],
["A8", "A2"], ["A8", "A3"],
["A9", "A5"], ["A9", "A6"], ["A9", "A2"], ["A9", "A8"]
]


ColorsUsed = ["G", "Y", "B", "O"] //Green, Yellow, Blue, Orange

Programming languages:


Python, JS, Golang, Java