fave77 / Mathball

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

Implement 'M.check()' #111

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.

/ OR /

M.check('prime')(18); / false / M.check('palindrome')(151); / true /

- Implementation:
  - Inside the module **check**, provide an _index.js_:
  ```js
  module.exports = arg => {
    /* first validate the argument here ... */
   /* return the corresponding function */
    return require(`../${arg}`).check;
  };

[NOTE: M.isPrime() will be deprecated after resolving this issue and similarly, within the next few weeks, we're gonna migrate to M.check() for checking all the numbers. Do not change any other number module for now, just stick with prime. A separate issue will be opened for that once this one gets successfully resolved.]

abdus commented 5 years ago

Assign this to me, please.

fave77 commented 5 years ago

@thisisabdus you're assigned!

fave77 commented 5 years ago

@thisisabdus your time's up!

abdus commented 5 years ago

Hey I am reclaiming this issue. I was busy with some other stuffs.

fave77 commented 5 years ago

@thisisabdus okay I giving you another shot at this but please don't claim any issue if you're not sure you'll be able to resolve it within the stipulated time!

abdus commented 5 years ago

A few things comes in an unexpected way!