Skip to content

Conversation

@Gopesh111
Copy link

Description

I have implemented a new algorithm to calculate the volume of a torus.
This implementation includes:

  • Type hints for all parameters and return values.
  • doctest examples to verify correctness.
  • A link to the Wikipedia resource in the docstring.
  • Handling for negative radius inputs.

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@algorithms-keeper algorithms-keeper bot added the awaiting reviews This PR is ready to be reviewed label Jan 16, 2026
@algorithms-keeper algorithms-keeper bot added the tests are failing Do not merge until tests pass label Jan 16, 2026
@Gopesh111 Gopesh111 closed this Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed tests are failing Do not merge until tests pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant