Skip to content

maths/least_common_multiple very inefficient #2268

@fhlasek

Description

@fhlasek

The time complexity of the least common multiple implementation is O(max(A, B)) where A and B are the function parameters.

Much more efficient implementation uses the formula with the greatest common divisor which is already implemented efficiently in this repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions