0
algorithm Detected loop
the algorithm for summing the salaries of N employees presented in the text performs a loop that consists of adding one salary to the total and advancing a pointer on the employee list N-1 times. the last salary is added separately. what is reason for visit? why dont we perform the loop N times?
1 Answer
+ 1
Hi there,
I would like to help you out. But please link your code with this question.