fave77 / Mathball

A JavaScript library for Competitive Programming
https://fave77.github.io/Mathball-Docs/
MIT License
99 stars 49 forks source link

Fibbinary Numbers #128

Closed fave77 closed 5 years ago

fave77 commented 5 years ago

Do the checklist before filing the issue:

NOTE: Provide a clear and concise description of the feature that needs to be added! Or if its a bug, then provide the necessary steps to reproduce it along with screenshots.

Function: You need to implement this feature in such a way that M.check('fibbinary')(10) would return true. See #111 for more info! You can implement it like so:

exports.check = num => {
/* implement the checking of fibbinary number */
};

Arguments: Positive Integer Return Type: Boolean Resource: https://www.geeksforgeeks.org/fibbinary-numbers-no-consecutive-1s-binary-o1-approach/

NOTE: You don't need to modify src/index.js or README.md. Just provide src/fibbinary/index.js and test/fibbinary-spec.js.

Shubhayu-Das commented 5 years ago

I'll work on this

fave77 commented 5 years ago

@sateslayer you're assigned