Question: Develop and write pseudo code for an algorithm to do following steps: Sum all the positive numbers of an array of size n Sum all
Develop and write pseudo code for an algorithm to do following steps:
-
Sum all the positive numbers of an array of size n
-
Sum all the negative numbers of the same array of size n
-
Add both the sums and return the result.
Analyze your algorithm and find its complexity class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
