← Flipkart questions
CodingReported in a candidate post, Jul 2025

Maximum loot from non-adjacent houses

Filed under Flipkart

Given an array of non-negative integers where nums[i] is the value of house i, find the maximum total you can rob if you may not rob two adjacent houses. Then reduce the space complexity of your…

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

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