← Adobe questions

House Robber in a circle and straight line

Filed under Adobe

Given an array of non-negative integers representing house values, find the maximum amount you can rob tonight without robbing adjacent houses. Solve for both a linear arrangement and a circular…

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 Adobe questions

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