There is a directed graph consisting of colors of length colors[i] represents the color of the edges where edges[j] = [a_j, b_j] indicates a directed edge from node
A path in the graph is a sequence of nodes
Return the maximum color value among all valid paths in the graph. If the graph contains a cycle, return
Constraints:
n colors.length
m edges.length
n
m
colors consists of lowercase English letters.
n
There is a directed graph consisting of colors of length colors[i] represents the color of the edges where edges[j] = [a_j, b_j] indicates a directed edge from node
A path in the graph is a sequence of nodes
Return the maximum color value among all valid paths in the graph. If the graph contains a cycle, return
Constraints:
n colors.length
m edges.length
n
m
colors consists of lowercase English letters.
n