Skip to content

1.6 String Compression is incorrect #12

@booboothefool

Description

@booboothefool

compressString('aabcccccaaa') => '2a1b5c3a'

should be a2b1c5a3

Just have to change:
cStr += (i - start + 1) + char;
to
cStr += char + (i - start + 1);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions