bugfix/arrays and two pointers#80
Merged
gcziprusz merged 5 commits intoNSS-Workshops:developfrom Feb 16, 2026
Merged
Conversation
gcziprusz
approved these changes
Feb 16, 2026
Contributor
gcziprusz
left a comment
There was a problem hiding this comment.
Looks good, thanks for the contribution.
The automation only failed because the fork is outside the org where our aws secrets live.
Contributor
|
Thanks for the suggestions, created tickets for those to be addressed also! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
fixed Exercise typo
fixed array-core-operations exercise 4 test scenario
04-arrays-and-two-pointers/03-array-core-operations/tests.js, on line 131, the expected array was empty, but given the test scenario, it should be ["C"] because the test has removed D, A, and B from the array, leaving C.fixed incorrect escaping in array-methods
04-arrays-and-two-pointers/05-array-methods/index.md, many characters were incorrectly escaped, which broke the UIfixed array-core-operations starterCode function all
04-arrays-and-two-pointers/03-array-core-operations/starterCode.js, on line 48, the function's argument list (setlist, song, position) were called in the incorrect order.fixed solution for array-methods exercise 1b
04-arrays-and-two-pointers/05-array-methods/solution.js, on lines 20-22, the example adds the openers using a forEach loop, which reverses the order of the openers of the array argument. to pass the tests, the original order must be maintained, so I used the rest operator to splatnewOpenersarray to the front of the array.Suggested Changes (not changed in this PR)
04-arrays-and-two-pointers/05-array-methods/starterCode.jsfinishedActsparam. It seems obviously after viewing the solution, but it wasn't exactly clear when to me when working on it that I needed to create a loop that ran as many times asfinishedActsto executeshift(); Maybe it would help to adjust the instruction comment, on line 13, to something like:// Use shift() to remove finished acts using the amount of finishedActssong.venueto specifically be "Rock Venue", "Jazz Venue", and "Electronic Venue"eventTypecan be "wedding", "corporate", "festival" but the tests require specific criteria not covered in the instruction material like wedding songs should include songs that have "romantic" or "peaceful" moods, etc.calculateBusinessMetricsrequires a specific schema that isn't specified in the starter code and doesn't match the example given in the learning materialcriteriabut doesn't specify thatpreferredMoodis an optional param. there's a test scenario where thepreferredMoodparam is excluded from the passed in criteria argument.// criteria: { maxDuration: number, preferredMood?: string, maxSongs: number }