Minimum Direction Violations

Asked at Google · Coding & Leetcode-style Questions · Difficulty: Medium · Last asked Jul 19, 2026

You are given a directed graph with `n` nodes labeled from `0` to `n - 1`. `edges[i] = [u, v]` represents an original directed edge `u -> v`.

Loading the problem…