Skip to content

London | 25-SDC-NOV | Fatma Degirmenci| Sprint 2 | Improve_with_caches#165

Open
fatmaevin wants to merge 2 commits into
CodeYourFuture:mainfrom
fatmaevin:improve_with_cahces
Open

London | 25-SDC-NOV | Fatma Degirmenci| Sprint 2 | Improve_with_caches#165
fatmaevin wants to merge 2 commits into
CodeYourFuture:mainfrom
fatmaevin:improve_with_cahces

Conversation

@fatmaevin

Copy link
Copy Markdown

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

Changelist

Improve time complexity using memoization for recursive functions.

@fatmaevin fatmaevin added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jun 10, 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.

Implementation looks good. Well done.

Comment on lines +23 to 24
if coin_index == len(coins):
return 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is unrelated to cache, but when there is only one coin left to consider, there is a much quicker way to find out whether there is 0 or 1 way to make change for total.

@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 Jun 11, 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