Skip to content

Cape Town | 26-ITP-Jan | Pretty Taruvinga | Sprint 1 | Data Groups#1103

Closed
Pretty548 wants to merge 1 commit intoCodeYourFuture:mainfrom
Pretty548:main
Closed

Cape Town | 26-ITP-Jan | Pretty Taruvinga | Sprint 1 | Data Groups#1103
Pretty548 wants to merge 1 commit intoCodeYourFuture:mainfrom
Pretty548:main

Conversation

@Pretty548
Copy link
Copy Markdown

@Pretty548 Pretty548 commented Mar 26, 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

Completed Sprint 1 tasks including Fix, Implement, and Refactor sections.

Fixed calculateMedian to pass all tests and handle edge cases
Implemented findMax, sum, and dedupe functions
Ensured functions handle invalid input and mixed data types
Fixed floating point precision issue in sum
Refactored includes function to use a for...of loop
All tests are passing successfully

@Pretty548 Pretty548 added 🏕 Priority Mandatory This work is expected 📅 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. labels Mar 26, 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.

There is only one modified file on this PR branch. Have you pushed all your changes to GitHub?

Comment thread Sprint-1/fix/median.js
return median;
// Filter out non-numeric values and sort the remaining numbers
const numbers = list
.filter((x) => typeof x === "number" && !isNaN(x))
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.

Do you plan to include Infinity and -Infinity in the calculation?

@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 26, 2026
@Pretty548 Pretty548 closed this Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants