OpenGenus/cosmos

Adding code for reversing singly linked list

Open

#6,587 opened on Oct 11, 2022

View on GitHub
 (14 comments) (0 reactions) (0 assignees)C++ (3,724 forks)batch import
Hacktoberfest

Repository metrics

Stars
 (13,462 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

This is a(n):

  • New algorithm
  • Update to an existing algorithm
  • Error
  • Proposal to the Repository

Details:

This algorith to reverse the singly linked list takes O(n) time and O(1) auxiliary space.

Contributor guide