Skip to content

Conversation

@akshith30388
Copy link

This pull request adds a new class ADTFraction under com.thealgorithms.maths.
It provides arithmetic operations on fractions including addition, multiplication, reciprocal, and automatic simplification using GCD.

Features:

Immutable Java record type

Auto-simplification and negative normalization

JUnit test cases included under src/test/java/com/thealgorithms/maths/

Complexity: O(1) for all arithmetic operations.

This class follows the project’s coding style and is tested.

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.

1 participant