Skip to content

Commit e1bbff8

Browse files
authored
Update stack_using_linked_lists.c
1 parent 8d63bec commit e1bbff8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

data_structures/linked_list/stack_using_linked_lists.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ int main()
3838

3939
/**
4040
* push function will add a new node at the head of the list, time complexity O(1).
41+
* @param p pointer to the top of the stack.
42+
* @returns void.
4143
*/
4244
void push(struct node *p)
4345
{
@@ -56,6 +58,8 @@ void push(struct node *p)
5658

5759
/**
5860
* pop function deletes the first node from the head, time complexity O(1).
61+
* @param p pointer to the top of the stack.
62+
* @returns void.
5963
*/
6064
void pop(struct node *p)
6165
{

0 commit comments

Comments
 (0)