<!DOCTYPE html>

<html>
	<head>
		<title>Find the maximum sum of a sub-sequence from an positive integer array where any two numbers of sub-sequence are not adjacent to each other in the original sequence</title>
	</head>

	<body>
		<script src="max-sum-non-adjacent-elements.js"></script>

		<script>
			var maxSumNonAdjElements = new Liferay.MaxSumNonAdjElements();

			var result = maxSumNonAdjElements.find(
				[
					1, 6, 2, 2, 3
				]
			);

			console.log(result); // 6, 2 -> 8

			result = maxSumNonAdj