fave77 / Mathball

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

Ugly Numbers #87

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: M.ugly()] needs to be added! For more info:

https://www.geeksforgeeks.org/ugly-numbers/

M.ugly() needs to accept a positive integer and all other arguments passed should throw a type error which needs to be handled gracefully! For error handling, you should refer to how M.catalan() is implemented.

Category: Find nth Number

Shubhayu-Das commented 5 years ago

Doubt: Do we need to find the n-th Ugly number or find the ugly number-rank of the input?

pydevsg commented 5 years ago

I would like to work on this issue . @sateslayer, you need to check whether a given positive number is Ugly number or not. Well, you might be working on another issue, so I am claiming for the same.

fave77 commented 5 years ago

@pydevsg you're assigned!

The task is to find the nth ugly number as specifically stated within the category section! Do this by implementing the most optimized algorithm.

Shubhayu-Das commented 5 years ago

Thanks for the clarification pydevsg and pbiswas101 :-)

fave77 commented 5 years ago

@pydevsg your time's up!

abdus commented 5 years ago

Assign this to me, please.

fave77 commented 5 years ago

@thisisabdus you're assigned!