← Oracle questions

Maximum achievable profit visiting cities with treasure and color

Filed under Oracle

Given n cities with associated treasures and colors, calculate the maximum achievable profit by visiting or skipping cities without moving backwards. Consecutive visited cities affect profit…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.