Skip to content

Commit 2b41d06

Browse files
committed
Stack and Queue README file updated
1 parent 4ac49a4 commit 2b41d06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Data Structure/Queue/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ To use a queue efficiently, we need to check the status of queue as well. For th
3232
- **isEmpty()** − check if queue is empty.
3333

3434
```
35-
In JavaScript, Queue can be easily implemented by an Array. JavaScript Arrays have the built-in methods called 'push' and 'shift', which do exactly the same operation as Queue.
35+
In PHP, Queue can be easily implemented by an Array. PHP have built-in methods called 'array_unshift'(insert at the beginning of an array) and 'array_pop'(remove from the end of an array), which can mimic the operations of an Queue.
3636
```
3737

3838
#### Complexity Analysis

Data Structure/Stack/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To use a stack efficiently, we need to check the status of stack as well. For th
4242

4343

4444
```
45-
In JavaScript, Stack can be easily implemented by an Array. JavaScript Arrays have the built-in methods called 'push' and 'pop', which do exactly the same operation as Stack.
45+
In PHP, Stack can be easily implemented by an Array. PHP have the built-in methods called 'array_push'(insert at the end of an array) and 'array_pop'(remove from the end of an array), which do exactly the same operation as Stack.
4646
```
4747

4848

0 commit comments

Comments
 (0)