World Languages, asked by nishadshital2020, 1 month ago

What is the time complexity to count the number of elements in the link list?​

Answers

Answered by badal2k14ele
2

Explanation:

What is the time complexity to count the number of elements in the linked list? Explanation: To count the number of elements, you have to traverse through the entire list, hence complexity is O(n).

Similar questions