Skip to content

Commit 19e1e78

Browse files
authored
Update 11 project sll .cpp
1 parent 7c7914d commit 19e1e78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LinkedList/Basic Consept/11 project sll .cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void Create(int A[], int n)
1919
first->next = NULL;
2020
last = first;
2121

22-
for (i = 0; i < n; i++)
22+
for (i = 1; i < n; i++)
2323
{
2424
t = (struct Node*)malloc(sizeof(struct Node));
2525
t->data = A[i];
@@ -300,4 +300,4 @@ int main()
300300

301301
return 0;
302302

303-
}
303+
}

0 commit comments

Comments
 (0)