Largest sum of non-adjacent numbers

Medium

Given a list of integers, write a function that will return the largest sum of non-adjacent numbers. Note that the numbers in the list can be 0 or negative....

Sign in to InterviewQs to view this question

Or

New to InterviewQs? Sign up now.

By proceeding, you agree to our Terms and Conditions and Privacy Policy.

Loading editor...