File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
data_structures/linked_list Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ int main()
36
36
}
37
37
}
38
38
39
- void push (struct node * p ) // push function will add a new node at the head of the list, time complexity O(1).
39
+ /**
40
+ * push function will add a new node at the head of the list, time complexity O(1).
41
+ */
42
+ void push (struct node * p )
40
43
{
41
44
int item ;
42
45
struct node * temp ;
@@ -50,7 +53,11 @@ void push(struct node *p) // push function will add a new node at the head of th
50
53
51
54
printf ("inserted succesfully\n" );
52
55
}
53
- void pop (struct node * p ) // pop function deletes the first node from the head, time complexity O(1).
56
+
57
+ /**
58
+ * pop function deletes the first node from the head, time complexity O(1).
59
+ */
60
+ void pop (struct node * p )
54
61
{
55
62
int item ;
56
63
struct node * temp ;
You can’t perform that action at this time.
0 commit comments