Comments (3)
@dmitryt you can fork this repo, change implementation and run tests to check correctness, then make PR to this repo
from generator.
Это конкурс и мы принимаем все реализации. Задача тут: 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 |
from generator.
Where to put the solution - here or in separate pull request?
from generator.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from generator.