Topic: Greedy Algorithm Problem / Level: beginner

Problem: You are given an array of integers. Find the maximum sum of a subarray such that no two elements in the subarray are adjacent.

Run the code to see the output here...