Skip to content

Comments

Add ReverseQueueRecursion.java: Reverse a Queue using recursion#7281

Merged
alxkm merged 19 commits intoTheAlgorithms:masterfrom
Vasundhara117:master
Feb 23, 2026
Merged

Add ReverseQueueRecursion.java: Reverse a Queue using recursion#7281
alxkm merged 19 commits intoTheAlgorithms:masterfrom
Vasundhara117:master

Conversation

@Vasundhara117
Copy link
Contributor

  • 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

Add ReverseQueueRecursion.java:
- Reverses a Queue using recursion (generic <T>)
- Includes unit tests in ReverseQueueRecursionTest.java
- Follows repo style (final class, private constructor, Javadoc)
@codecov-commenter
Copy link

codecov-commenter commented Feb 20, 2026

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.36%. Comparing base (12935c2) to head (9680de3).

Files with missing lines Patch % Lines
...s/datastructures/queues/ReverseQueueRecursion.java 83.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #7281      +/-   ##
============================================
- Coverage     79.38%   79.36%   -0.03%     
+ Complexity     7020     7018       -2     
============================================
  Files           785      786       +1     
  Lines         23019    23025       +6     
  Branches       4523     4523              
============================================
  Hits          18273    18273              
- Misses         4019     4020       +1     
- Partials        727      732       +5     

☔ 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.

@singhc7
Copy link
Contributor

singhc7 commented Feb 23, 2026

Adding a corresponding Junit test class is a requirement for any new code file requested to be merged. Consider adding a test class file. Read CONTRIBUTING.md for more info.

Copy link
Member

@alxkm alxkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution.

@alxkm alxkm merged commit 10114b7 into TheAlgorithms:master Feb 23, 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.

4 participants