OpenGenus/cosmos

Adding code for reversing singly linked list

Open

#6.587 geöffnet am 11. Okt. 2022

Auf GitHub ansehen
 (14 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (3.724 Forks)batch import
Hacktoberfest

Repository-Metriken

Stars
 (13.462 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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