← Questions

Two contiguous delivery routes with the most revenue

0
NuroCodingLast asked Jul 2026

Stops along a line each bring some revenue. Pick two contiguous routes (segments of stops) that do not overlap so that their total revenue is as large as possible.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding