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

Implement first task in this repo #5

Open
tshemsedinov opened this issue Jan 2, 2020 · 3 comments
Open

Implement first task in this repo #5

tshemsedinov opened this issue Jan 2, 2020 · 3 comments

Comments

@tshemsedinov
Copy link
Member

It's contest, we accept all contributors and will compare

@tshemsedinov
Copy link
Member Author

Это конкурс и мы принимаем все реализации. Задача тут: Exercises.ru.md, а эталонная реализация тут: Exercises/1-ids.js но нужно написать идентичную функцию, генерирующую идентификаторы. Последовательность идентификаторов не важна, их можно генерировать в любой последовательности, но лучше по возрастанию. Тесты генерируют последовательность и сортируют ее, так что, они не заметят разницы. Но в технологический стек Метархия отправится только лучшая реализация.

Пример последовательности:

bin dec
100 4
110 6
10000 16
10010 18
11000 24
11010 26
1000000 64
1000010 66
1001000 72
1001010 74
1100000 96
1100010 98
1101000 104
1101010 106
100000000 256
100000010 258
100001000 264
100001010 266
100100000 288
100100010 290
100101000 296
100101010 298
110000000 384
110000010 386
110001000 392
110001010 394
110100000 416
110100010 418
110101000 424
110101010 426

@dmitryt
Copy link

dmitryt commented Jan 11, 2020

Where to put the solution - here or in separate pull request?

@tshemsedinov
Copy link
Member Author

@dmitryt you can fork this repo, change implementation and run tests to check correctness, then make PR to this repo

DzyubSpirit added a commit to DzyubSpirit/Generator that referenced this issue Jan 16, 2020
DzyubSpirit added a commit to DzyubSpirit/Generator that referenced this issue Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants