| QUEUE QUESTIONNAIRE: | |||||||
PROBLEM 1 : |
|||||||
| The Queue has operations create, append, front, remove and is Empty. A Queue contains a sequence of integers. Design an algorithm to construct another queue containing the same integers but in reverse order. The only queue operations available to you are those listed above. |
|||||||
| PROBLEM 2 | |||||||
| Repeat the previous question, only this time you have to leave the first queue in its original state as well. | |||||||
| PROBLEM 3 : | |||||||
| A queue contains a sequence of alphabetic characters. Design an algorithm to test whether the contents of the queue is a palindrome. As before you should assume that the only queue operations available to you are those listed in question 1. | |||||||
| Prev | End |
||||||