PREV INDEX NEXT

Author: Unknown
Subject: Why would the value stored in deque be char*
Date: Wednesday, 18 Mar 2020, 12:17:47

Hi, I am just a little confused why the value stored in deque is char* instead of just char. My confusion is: I thought we could implement Qsort by pushing/adding each char of the string returned by getline to ADT and sort them by recursion (each time create three new deques, one for less than pivot, one for pivot, one for more than pivot). So I am confused why the value stored is a pointer to a string.
PREV INDEX NEXT