Skip to content

Commit 0106b6f

Browse files
committed
feat: add URL for Maximum Sum of Non-Adjacent Elements algorithm reference
1 parent ca64c74 commit 0106b6f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/thealgorithms/dynamicprogramming/MaximumSumOfNonAdjacentElements.java

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Class to find the maximum sum of non-adjacent elements in an array. This
55
* class contains two approaches: one with O(n) space complexity and another
66
* with O(1) space optimization.
7+
*
8+
* For more information, refer to https://takeuforward.org/data-structure/maximum-sum-of-non-adjacent-elements-dp-5/
79
*/
810
final class MaximumSumOfNonAdjacentElements {
911
private MaximumSumOfNonAdjacentElements() {

0 commit comments

Comments
 (0)