House Robber (Extra) Problem
House Robber (Extra) Problem — ExecCode Medium DSA Practice
Solve the House Robber (Extra) problem on ExecCode. Free online medium DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
House Robber (Extra): rob/skip For House Robber (Extra), focus on the exact input variables, return only the requested value, and preserve the required time complexity for the intended pattern.
Examples
Input nums = [2, 7, 9, 3, 1]; Output 12
Constraints
1 ≤ n ≤ 10^4
Practice House Robber (Extra) free on ExecCode. Browse DSA problems, topic map, and placement guides.