Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f2bcd32

Browse files
Update ReduceArray.java
1 parent 04dad8c commit f2bcd32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎ApplyingCollections/ReduceArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
There is an array of N elements. Perform the following operation until there are only two elements left in the array.
2+
There is an array of N elements. Perform the following operation until there are one or no elements left in the array.
33
Remove the largest and second largest element from the array and insert their absolute difference back in the array.
44
55
Input format

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /