Solution 05
Question05:
Take an array of length n where all the numbers are
nonnegative and unique. Find the element in the array possessing the
highest value. Split the element into two parts where first part
contains the next highest value in the array and second part hold the
required additive entity to get the highest value. Print the array
where the highest value get splitted into those two parts.
Sample input: 4 8 6 3 2
Sample output: 4 6 2 6 3 2
[Solution No 05]
Output
java 05 solution |
0 Response to "05 Solution Java Exercise "
Post a Comment