DAT/305 Week 3 Challenge Activities 3.5.1: Deque ADT

Availability: In stock

Regular Price: $5.00

Special Price: $3.00

OR

DAT305 Week 3 Challenge Activities 1 Deque ADT

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

DAT/305 Week 3 Challenge Activities 3.5.1: Deque ADT


CHALLENGE ACTIVITY 1


Given an empty deque numDeque, what are the deque's contents after the following operations?
PushBack(numDeque, 24)
PushFront(numDeque, 49)
PushBack(numDeque, 44)


After the above operations, what does PeekFront(numDeque) return?


After the above operations, what does PeekBack(numDeque) return?


After the above operations, what does GetLength(numDeque) return?



CHALLENGE ACTIVITY 2


Given an empty deque numDeque, what are the deque's contents after the following operations?
PushBack(numDeque, 95)
PopFront(numDeque)
PushFront(numDeque, 42)
PushFront(numDeque, 25)
PopBack(numDeque)


After the above operations, what does GetLength(numDeque) return?



CHALLENGE ACTIVITY 3


Given numDeque: 19, 38
PeekFront(numDeque)
PopFront(numDeque)
After the above operations, what does GetLength(numDeque) return?


After the above operations, what does IsEmpty(numDeque) return?

Regular Price: $5.00

Special Price: $3.00

Details

DAT/305 Week 3 Challenge Activities 3.5.1: Deque ADT

CHALLENGE ACTIVITY 1

Given an empty deque numDeque, what are the deque's contents after the following operations?
PushBack(numDeque, 24)
PushFront(numDeque, 49)
PushBack(numDeque, 44)

After the above operations, what does PeekFront(numDeque) return?

After the above operations, what does PeekBack(numDeque) return?

After the above operations, what does GetLength(numDeque) return?


CHALLENGE ACTIVITY 2

Given an empty deque numDeque, what are the deque's contents after the following operations?
PushBack(numDeque, 95)
PopFront(numDeque)
PushFront(numDeque, 42)
PushFront(numDeque, 25)
PopBack(numDeque)

After the above operations, what does GetLength(numDeque) return?


CHALLENGE ACTIVITY 3

Given numDeque: 19, 38
PeekFront(numDeque)
PopFront(numDeque)
After the above operations, what does GetLength(numDeque) return?

After the above operations, what does IsEmpty(numDeque) return?

Additional Information

Special Price $3.00

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.