Skip to content

London | 26-SDC-July | Raihan Sharif | Sprint 2 | Implement LRU Cache - #268

Open
RaihanSharif wants to merge 1 commit into
CodeYourFuture:mainfrom
RaihanSharif:LRUCache
Open

RaihanSharif wants to merge 1 commit into
CodeYourFuture:mainfrom
RaihanSharif:LRUCache

Conversation

@RaihanSharif

Copy link
Copy Markdown

Was going to use my own linked list, this was easier.

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

Task code

CYF-1181

Changelist

Implemented LRU cache using OrderedDict, which preserves insertion order, and allows moving a dict entry to the end in O(1) time, which allows me to do this assignment without using my own doubly linked list implementation.

Was going to use my own linked list, this was easier.
@RaihanSharif RaihanSharif added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 24, 2026

@cjyuan cjyuan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@cjyuan cjyuan added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants