Razorpay SWE Interview Question 2023 June | Dynamic Programming | on-campus

Razorpay · Question · Posted Jun 2026

Question 1: House Robber Problem Statement You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. The only constraint stopping you from robbing each of them is that adjacent houses have security systems connected — it will automatically contact police if two adjacent houses were broken into on the same night. Given an integer array nums representing the amount of money in each house, return the maximum amount of ...

The full answer & interview discussion are available to premium members.

Log in Create a free account