Birmingham | 26-ITP-May |Gabriel Pawuoi | Sprint 1 | implement dedupe function and tests - #1397
Birmingham | 26-ITP-May |Gabriel Pawuoi | Sprint 1 | implement dedupe function and tests#1397KhotKeys wants to merge 1 commit into
Conversation
|
See my comment on #1398 |
|
Your PR couldn't be matched to an assignment in this module. Please check its title is in the correct format, and that you only have one PR per assignment. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
1 similar comment
|
Your PR couldn't be matched to an assignment in this module. Please check its title is in the correct format, and that you only have one PR per assignment. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
Learners, PR Template
Self checklist
Changelist
Implemented the dedupe function using a Set to remove duplicate values while preserving the order of first occurrences.
Added tests covering an empty array, an array with no duplicates, and arrays of strings and numbers with duplicates.