Determine if an undirected graph can be colored with k colors using backtracking.
Constraints
Example
```python >>> can_color([[1], [0, 2], [1]], 2) True >>> can_color([[1], [0, 2], [1]], 3) True >>> can_color([[1,2], [0,2], [0,1]], 2) False >>> can_color([[]], 1) True ```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints