Math, asked by sagarspatel4126, 1 year ago

Algorithm to calculate the length of a list in recursive function


Aishwarya98: Hope you are satisfied with my answer..
Aishwarya98: Please mark me as brainliest..

Answers

Answered by Aishwarya98
0

Algorithm to calculate the length of the list in recursive function:


1. Initialize the count as zero


2. Initialize a node pointer , current = head


3. Do the following when current is not equal to NULL


a) current = current -> next


b) count++


4. return count..


Aishwarya98: mark me as brainliest..
Similar questions