Skip to content

Linked List 1 completed#1763

Open
sujaygijre wants to merge 3 commits intosuper30admin:masterfrom
sujaygijre:master
Open

Linked List 1 completed#1763
sujaygijre wants to merge 3 commits intosuper30admin:masterfrom
sujaygijre:master

Conversation

@sujaygijre
Copy link
Copy Markdown

No description provided.

@super30admin
Copy link
Copy Markdown
Owner

  • The student's solution for reversing a linked list is excellent. It correctly implements the iterative approach with optimal time and space complexity.
  • The code is clean and easy to understand, with good variable naming and logical flow.
  • One minor suggestion: In C++, it's more idiomatic to use nullptr instead of NULL for null pointers, as the student has done in some parts of the code. Consistency in using nullptr throughout would be slightly better.
  • The student has also provided solutions for other linked list problems (detecting a cycle and removing the nth node from the end), which are correct and well-implemented, showing a good understanding of linked list operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants