What is the goal of Gas Station?

Practice this question from Gas Station - Greedy Reset Pattern Practice Quiz, with options and an explanation.

Question

What is the goal of Gas Station?

Option A — Correct answer

Find the valid starting station or return -1.

Option B

Find every permutation of the input

Option C

Always sort characters alphabetically

Option D

Reverse a linked list only

Explanation

Find the valid starting station or return -1.

Gas Station - Greedy Reset Pattern Practice Quiz

All questions · Next question

Open on QuizMaker