PREV INDEX NEXT

Author: Unknown
Subject: Question Regarding invalid arguments
Date: Saturday, 02 May 2020, 14:41:59

Hi Professor,

I was looking back at my GradeSheet for assignment 4 and I noticed I failed several test cases (307, 308, 309, 310) and I believe this would be all due to the same error.

Could you tell me how we should have dealt with an invalid argument for the deque methods or could you share us a little bit of your code regarding handling invalid arguments? I checked if *d == NULL and if the head and tail of the deque struct are NULL, but these still fail the tests.

Thank you!
PREV INDEX NEXT