OpenGenus/cosmos

Adding code for reversing singly linked list

Open

#6.587 aberto em 11 de out. de 2022

Ver no GitHub
 (14 comments) (0 reactions) (0 assignees)C++ (3.724 forks)batch import
Hacktoberfest

Métricas do repositório

Stars
 (13.462 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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.

Guia do colaborador