Skip to content

Added volume of a pyramid frustum#7291

Merged
DenizAltunkapan merged 4 commits intoTheAlgorithms:masterfrom
kvadrik:patch-1
Feb 27, 2026
Merged

Added volume of a pyramid frustum#7291
DenizAltunkapan merged 4 commits intoTheAlgorithms:masterfrom
kvadrik:patch-1

Conversation

@kvadrik
Copy link
Contributor

@kvadrik kvadrik commented Feb 27, 2026

Added a function calculating volume of a pyramid frustum, V=(S1+S2+sqrt(S1*S2))*h/3

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new algorithms include a corresponding test class that validates their functionality.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

Added a function calculating volume of a pyramid frustum, V=(S1+S2+sqrt(S1*S2))*h/3
@codecov-commenter
Copy link

codecov-commenter commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.40%. Comparing base (7e5d9d4) to head (166dbe4).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #7291   +/-   ##
=========================================
  Coverage     79.40%   79.40%           
- Complexity     7046     7049    +3     
=========================================
  Files           787      787           
  Lines         23105    23106    +1     
  Branches       4542     4542           
=========================================
+ Hits          18346    18347    +1     
- Misses         4023     4024    +1     
+ Partials        736      735    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DenizAltunkapan DenizAltunkapan merged commit 705eb52 into TheAlgorithms:master Feb 27, 2026
7 checks passed
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.

3 participants