0

i want to write an algo about stack example.. that is, ""When a person wear bangles the last bangle worn is the first one to be removed and the first bangle would be the last to be removed. This follows last in first out (LIFO) principle of stack.""
how to write it?

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by sunn shine
0

Please use Capital Letters. Also don't ask anyone to do your homework.

If you have any specific question, or errors you do not understand, don't hesitate to ask, I'd love to help you!

0

algorithm:
1. stack arm;
2. if (arm is empty)
push bangles
3. if (arm is full)
pop bangles
this was answer.. iv done it!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.