OpenGenus/cosmos

Adding code for reversing singly linked list

Open

#6,587 opened on 2022年10月11日

GitHub で見る
 (14 comments) (0 reactions) (0 assignees)C++ (3,724 forks)batch import
Hacktoberfest

Repository metrics

Stars
 (13,462 stars)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド