Skip to content

Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 2 | Implement a linked list in Python#121

Open
RahwaZeslusHaile wants to merge 1 commit intoCodeYourFuture:mainfrom
RahwaZeslusHaile:Implement-a-linked-list-in-Python
Open

Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 2 | Implement a linked list in Python#121
RahwaZeslusHaile wants to merge 1 commit intoCodeYourFuture:mainfrom
RahwaZeslusHaile:Implement-a-linked-list-in-Python

Conversation

@RahwaZeslusHaile
Copy link

Manchester | 25-SDC-Nov | Rahwa Haile | Sprint 2 | Implement a linked list in Python

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Implement a Doubly-Linked List in Python

Description

Implemented a complete doubly-linked list data structure with O(1) worst-case time complexity for all required operations.

Changes

  • Created Node class with pointers to next and previous nodes
  • Created LinkedList class with efficient head/tail management
  • Implemented three core operations with guaranteed O(1) performance:
    • push_head(): Insert element at list head, returns handle for later removal
    • pop_tail(): Remove and return element from list end
    • remove(): Remove any element given its handle, without list traversal

Please review my work — thank you!

@RahwaZeslusHaile RahwaZeslusHaile added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 25, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 25, 2026
@github-actions

This comment has been minimized.

@RahwaZeslusHaile RahwaZeslusHaile added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 25, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 25, 2026
@RahwaZeslusHaile RahwaZeslusHaile force-pushed the Implement-a-linked-list-in-Python branch from 69d651d to 602505d Compare February 25, 2026 23:27
@RahwaZeslusHaile RahwaZeslusHaile added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant