js-assessment
js-assessment copied to clipboard
Possible Error in 1st Strings Exercise
The description reads "you should be able to reduce duplicate characters to a desired minimum." However, the last test expects string 'aaxxxaabbbb" with a maximum number of 2 duplicates to return 'aaxxaabb', which contains 4 'a' characters.
Reducing usually means replacing 2 adjacent duplicate characters with any one of them. There are 2 sequences of 'aa' which are not next to each other, that seems fine.