OA [CodeSignal] Minimum Edge Reversal Root
Uber interview questions · Hard · OA round · 5 tests
Choose the tree root that minimizes how many directed edges must be reversed to point outward.
The full question, tests and reference solution are available with a plan that includes Uber.
Run your code with Ctrl+Enter to see results.