Skip to content

RLE Compress#138

Open
tyooma wants to merge 1 commit into
mate-academy:masterfrom
tyooma:develop
Open

RLE Compress#138
tyooma wants to merge 1 commit into
mate-academy:masterfrom
tyooma:develop

Conversation

@tyooma

@tyooma tyooma commented May 26, 2020

Copy link
Copy Markdown

No description provided.

Comment thread src/rleCompress.js

for (let i = 0; i < source.length; i++) {
if (source[i] === source[i + 1]) {
counter += 1;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мені здається краще використовувати counter++

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думаю тут это не особо принципиально, но спасибо)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants