PREV INDEX NEXT

Author: Unknown
Subject: counting nodes in deque
Date: Friday, 20 Mar 2020, 05:01:42

Can we add functions to deque.h, such as a function to count the number of nodes in a deque?

Is there another way of counting the number of nodes in deque that doesn't require us to add a field in the deque struct? This is needed when doing the quickSorting (to identify base cases).
PREV INDEX NEXT