LeetCode
Question
·
Jun 2020
Apple | Phone | Maximum sum of non adjacent elements
57 upvotes
55,495 views
52 replies
Question Details
There is unsorted integer array, return a maximum sum of non adjacent elements. example> [5, 20, 15, -2, 18] => 20 + 18 = 38 [4, 1, 6, 3, 2] => 4 +...
Full Details
🔒
Unlock all Apple questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a apple interview for a swe role reported in 2020.
It covers the following topics: Arrays .