Algo-Phantoms / Algo-Tree

Algo-Tree is a collection of Algorithms and data structures which are fundamentals to efficient code and good software design. Creating and designing excellent algorithms is required for being an exemplary programmer. It contains solutions in various languages such as C++, Python and Java.
MIT License
356 stars 624 forks source link

M coloring problem #2065

Open Sidhijain opened 3 years ago

Sidhijain commented 3 years ago

Given an undirected graph and a number m, determine if the graph can be coloured with at most m colours such that no two adjacent vertices of the graph are colored with the same color.

I write the code of m coloring problem by solving it with backtracking technique

Language Used: C++

Checklist:

github-actions[bot] commented 3 years ago

AlgoTree team will review your PR soon. Take Care of Few of the Things where most contributors are missing out. msgonpr @Sidhijain :)