Skip to content

Commit 04d499a

Browse files
committed
removed trailing spaces in comments
1 parent 27699e3 commit 04d499a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ private MaximumSumOfNonAdjacentElements() {
1414
* Approach 1: Uses a dynamic programming array to store the maximum sum at each
1515
* index. Time Complexity: O(n) - where n is the length of the input array.
1616
* Space Complexity: O(n) - due to the additional dp array.
17-
*
1817
* @param arr The input array of integers.
1918
* @return The maximum sum of non-adjacent elements.
2019
*/
@@ -49,7 +48,6 @@ public static int getMaxSumApproach1(int[] arr) {
4948
* of an array. Time Complexity: O(n) - where n is the length of the input
5049
* array. Space Complexity: O(1) - as it only uses constant space for two
5150
* variables.
52-
*
5351
* @param arr The input array of integers.
5452
* @return The maximum sum of non-adjacent elements.
5553
*/

0 commit comments

Comments
 (0)