Which edge case matters for this problem?
Practice this question from Gas Station - Greedy Reset Pattern Practice Quiz, with options and an explanation.
Question
Which edge case matters for this problem?
Option A — Correct answer
Total gas less than total cost means impossible.
Option B
Whether a tree is balanced
Option C
Whether a graph is weighted
Option D
Whether a string has uppercase letters
Explanation
Total gas less than total cost means impossible.