Skip to content

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

Closed
wants to merge 4 commits into from
Closed

Conversation

T1LT
Copy link
Contributor

@T1LT T1LT commented Feb 14, 2023

No description provided.

Copy link
Contributor

@appgurueu appgurueu left a 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)

@T1LT
Copy link
Contributor Author

T1LT commented Feb 15, 2023

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!

Copy link
Contributor

@appgurueu appgurueu left a 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.

@T1LT
Copy link
Contributor Author

T1LT commented Feb 15, 2023

I feel it would be cleaner conceptually to return a Set of factors.

sure, will do!

@T1LT
Copy link
Contributor Author

T1LT commented Feb 15, 2023

I have 2 questions:

  1. how do I type the Set? Set or Set or is there a convention for this?
  2. how do I write the tests for matching Sets?

@T1LT
Copy link
Contributor Author

T1LT commented Feb 15, 2023

@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?

@raklaptudirm
Copy link
Member

Check the link it should have all you need.

@zFl4wless
Copy link
Contributor

zFl4wless commented Mar 10, 2023

I improved this code base a bit and resolves the requested changes in #112
Hope you are fine with that @T1LT :)

@raklaptudirm
Copy link
Member

Closing since #112 which was a superset of this pr was merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants