Skip to content

Birmingham | 26 JAN ITP | Merve Reis | Sprint 1 | Data Groups#1021

Open
mervereis wants to merge 12 commits intoCodeYourFuture:mainfrom
mervereis:Sprint-1
Open

Birmingham | 26 JAN ITP | Merve Reis | Sprint 1 | Data Groups#1021
mervereis wants to merge 12 commits intoCodeYourFuture:mainfrom
mervereis:Sprint-1

Conversation

@mervereis
Copy link
Copy Markdown

@mervereis mervereis commented Mar 16, 2026

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

Changelist

Functions created as requested and test cases wroten for

@mervereis mervereis added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Mar 16, 2026
@mervereis mervereis changed the title Birmingham | ITP 26 | Merve Reis | Sprint 1 | Data Groups Birmingham | 26 JAN ITP | Merve Reis | Sprint 1 | Data Groups Mar 18, 2026
@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 19, 2026
@mervereis mervereis added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 22, 2026
Copy link
Copy Markdown
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Other changes look good.

Comment on lines +27 to +28
// Copy before sort (extra safety, though filter already creates new array)
const sorted = [...numbers].sort((a, b) => a - b);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do you need this "extra safety" to make a copy of numbers before sorting? Safety from what?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@cjyuan removed unnecessary comments

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why make a copy of numbers before sorting?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@cjyuan I reverted to spreading numbers before sorting, now just using numbers directly instead of creating a copy of it.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 23, 2026
@mervereis mervereis added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 27, 2026
@cjyuan
Copy link
Copy Markdown
Contributor

cjyuan commented Mar 27, 2026

Changes look 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. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Mar 27, 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. Module-Data-Groups The name of the module. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants