Given a directed graph of n nodes labeled 0 to n-1 with string `colors` where `colors[i]` is a lowercase letter, and a 2D array `edges` where `edges[j] = [u, v]` represents a directed edge from `u` to…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.