Computer Science, asked by ovaiskhanday927, 8 days ago

I was studying Data Structures and I came accross the heading, "Normal and Circular representation of Stack in Lists". I was not able to implement Circular representation of stack in list. However, I do implemented the Normal representation.

What is Curcular representation and how to implement.​

Answers

Answered by dqesin3y
0

Answer:

Circular representation is merely the connection of values to form a loop where the end is connected to the beginning (highly simplified)

Explanation:

To showcase a circular list we merely make the elements have pointers that point to the first point in the list. To visualize the concept connect the elements in loops until the end is reached when the end of the ending element is connected in a loop with the first element.

You could either use a circular chart or make arrow diagrams for the implementation

Similar questions