if u guys have some Queues/Stack exercises please post me links.thank you!
if u guys have some Queues/Stack exercises please post me links.thank you!
i know those. i need practical exercises
to check whether this expression correct or wrong we can use a stack and figure out brackect are placed in order or notCode:eg: 2[9/4{(3+3)-2}]
i need like that practical Questions
To my understanding, a queue and a stack are just conceptual ideas of a data structure. You can probably start by making linked lists of sorts and then expand it into a queue/stack. If you aren't looking for a dynamic data structure, you can just implement an algorithm on an array for the stack(FIFO) or queue(LILO) mechanism for practice. I am really not that advanced at creating data structures, but what I do know i've learned off of google, specifically looking up "data structure syllabus" and following those links to sites and stealing assignments >< Do this and you can find loads of examples.
Create a queue and stack with multiple threads accessing them at the same time.