Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M coloring problem #2065

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Sidhijain
Copy link

@Sidhijain Sidhijain commented May 30, 2021

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:

  • I have placed my code file in the (/Code) Folder e.g. If it's a Code in JAVA then I have placed my code pr_name.java file in (/Code/Java/) Directory.
  • I have Added the Description, Approach, and Working of Code at the beginning of Code.
  • I have added 2 or more Testcases at the Bottom side of the Code.
  • I have Added Time and Space Complexity at the End of the Code.
  • I have Explained the Variables use in Complexity e.g. O(n) where n is the length of an array.
  • I have Updated the Readme Related to the Topics e.g., if the issue is regarding Matrix then Update the Readme.MD present in 2D_Array Folder.
  • I have added Proper Comments in between the Code for Better Explanation.
  • I have sorted the list of the Readme.MD where I have added the issue in the Alphabetical Order.

@github-actions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

m coloring problem by backtracking
2 participants