Skip to content

string compression solutions don't match description #271

Open
@cristianmtr

Description

@cristianmtr

Hello

In the string compression challenge:

  • you say Only compress the string if it saves space.
  • but you have expected outputs like
        assert_equal(func('AAABCCDDDDE'), 'A3BC2D4E')
        assert_equal(func('BAAACCDDDD'), 'BA3C2D4')
        assert_equal(func('AAABAACCDDDD'), 'A3BA2C2D4')

The C2 doesn't save space, right? Shouldn't it be just CC ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions