Home > Back-end >  C language data structure of stack and queue
C language data structure of stack and queue

Time:09-30

Could you tell me how to do this in C language, give all the code, genuflect is begged

CodePudding user response:

This is the most basic of stack and queue operations, LZ mocking the data structure of stack and queue operations example modification can the
Parking lot and parked area is the stack, the waiting area is the queue
Into the car parking lot is an element from the queue waiting area before push into stack
Is parking the car parking lot stack elements of pop, then push to the park area, the car after the put in order to stop the elements of pop, then push back to the parking lot can


CodePudding user response:

reference 1st floor qybao response:
this is the most basic of stack and queue operations, LZ mocking the data structure of stack and queue operations example modification can the
Parking lot and parked area is the stack, the waiting area is the queue
Into the car parking lot is an element from the queue waiting area before push into stack
Is parking the car parking lot stack elements of pop, then push to the park area, after the car parked the stay of elements, in turn, pop, then push back to the parking lot can

Brother I can't write, for I do not know why is that many Pointers or something I can't write out
  • Related