Skip to content

Commit 0c21fde

Browse files
author
majid shahbaz
committed
Added stack and queue methods implementations
1 parent fc06bc4 commit 0c21fde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/datastructures/lists/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ To add an item to the top of the stack, use append(). To retrieve an item from t
9595
Example:
9696
```python
9797
_stack = [1,2,3,4]
98-
# append() add a element in the last of list
98+
# append() push an element in the last of stack
9999
_stack.append(5)
100100
print(_stack)
101101
#[1,2,3,4,5]
102102

103-
# Pop pops the last element of list
103+
# Pop removes the top element of stack
104104
_stack.pop()
105105
print(_stack)
106106
# [1,2,3,4]

0 commit comments

Comments
 (0)