OpenGenus/cosmos

Adding code for reversing singly linked list

Open

#6,587 建立於 2022年10月11日

在 GitHub 查看
 (14 留言) (0 反應) (0 負責人)C++ (3,724 fork)batch import
Hacktoberfest

倉庫指標

Star
 (13,462 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南