Please help me in writing the code to test the stack class, and enhancing and testing the queue class.
1. Test the stack class by determining if the following strings have matching open and closing () and/or {} and/or [] :
()
[](){}
[{()}]
[[))
{()[()]}
The fourth one is the only one that should not have matching pairs.
2. Please complete the Queue class including following functions:
enqueue
dequeue
front
size
Write the code to test the queue class by determining if the following strings are char-by-char palindromes:
ABCDEDCBA
NOTAPALINDROME
ISPALINILAPASI
2A3MEAS
ATOYOTA
(({}[][]{}((
Please refer to the attached files to use for the input.
Attachment:- StackStr.zip