You are given an integer n representing the number of nodes in a directed graph numbered from edges where each edges[i] =
You are also given a string labels of length n, where labels[i] is the character assigned to node k.
A path from node k consecutive identical characters.
Return the minimum total weight of a valid path from node
Constraints:
n labels.length
edges.length
edges[i]
labels consists of lowercase English letters.
k
You are given an integer n representing the number of nodes in a directed graph numbered from edges where each edges[i] =
You are also given a string labels of length n, where labels[i] is the character assigned to node k.
A path from node k consecutive identical characters.
Return the minimum total weight of a valid path from node
Constraints:
n labels.length
edges.length
edges[i]
labels consists of lowercase English letters.
k