Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

01 lesson #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

01 lesson #2

wants to merge 2 commits into from

Conversation

rusrich
Copy link
Owner

@rusrich rusrich commented May 31, 2020

Home work for lesson 01

let user = 222444555

let a = timestamp.toString(16)
let b = cluster.toString(16)

Choose a reason for hiding this comment

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

В случае если cluster будет меньше 16 то toString(16) вернет 1 символ а не два, сколько занимает блок В, и индентификатор будет некорректным.
В таких случаях требуется сделать два символа таким образом что бы они корректно могли быть декодированны, т.е .добавить 0 в начале

@@ -0,0 +1,21 @@
let counter = 0
let k = 0, p, n, m

Choose a reason for hiding this comment

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

не стоит использовать короткие имена переменных если они явно не ясны

}
}

let counterSog = cleanText.length - counterGla

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.

2 participants