-
-
Notifications
You must be signed in to change notification settings - Fork 411
feat(maths): added Factors #103
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please call this Factorize
or FindFactors
(our naming convention demands a verb).
Side note: You could speed this up to sqrt(n)
Got it! Will add the optimization too! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel it would be cleaner conceptually to return a Set
of factors.
sure, will do! |
I have 2 questions:
|
@raklaptudirm do I have to create an Interface for it? or can is typing it as Set good enough? and what Jest matcher should I use for the tests? |
Check the link it should have all you need. |
Closing since #112 which was a superset of this pr was merged. |
No description provided.