js-assessment icon indicating copy to clipboard operation
js-assessment copied to clipboard

Possible Error in 1st Strings Exercise

Open TacoMantra opened this issue 9 years ago • 1 comments

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.

TacoMantra avatar Jul 15 '16 15:07 TacoMantra

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.

artfuldev avatar Jan 17 '17 09:01 artfuldev