Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Linked List 1/AppendLastNToFirst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Node *appendLastNToFirst(Node *head, int n){
//corner case
if(n == 0 or head == NULL) {
return head;
}


Node *tail = head;
Node *ptr = head;
Expand All @@ -79,7 +79,7 @@ Node *appendLastNToFirst(Node *head, int n){
tail = tail -> next;
length++;
}

int counter = 1;

while(counter < length - n) {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Data_Structure_CodingNinjas.com
These are my solutions to the Data Structure and Algorithm Course on CodingNinjas.com using C++.
These are my solutions to the Data Structure and Algorithm Course on CodingNinjas.com using C++