Skip to content

Conversation

@kamakshipal1-tech
Copy link

(Description template was accidentally removed.)

📌 Description

This pull request adds a recursive implementation of the Tower of Hanoi problem in Java.

What is included:

  • Clean and readable Java code
  • Proper base case and recursive logic
  • Clear print statements showing each disk move
  • Time and space complexity mentioned in comments

Why this change:

  • To practice recursion concepts
  • To contribute a classic DSA problem solution
  • To improve code readability and learning value

Complexity:

  • Time Complexity: O(2^n)
  • Space Complexity: O(n) (recursion stack)

I would appreciate feedback on:

  • Code readability
  • Comments and naming
  • Any possible improvements

Thank you for reviewing! 🙌

📌 Description

This pull request adds a recursive implementation of the Tower of Hanoi problem in Java.

What is included:

  • Clean and readable Java code
  • Proper base case and recursive logic
  • Clear print statements showing each disk move
  • Time and space complexity mentioned in comments

Why this change:

  • To practice recursion concepts
  • To contribute a classic DSA problem solution
  • To improve code readability and learning value

Complexity:

  • Time Complexity: O(2^n)
  • Space Complexity: O(n) (recursion stack)

I would appreciate feedback on:

  • Code readability
  • Comments and naming
  • Any possible improvements

Thank you for reviewing! 🙌

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.91%. Comparing base (b76962d) to head (3f8a900).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #7173   +/-   ##
=========================================
  Coverage     78.91%   78.91%           
- Complexity     6853     6854    +1     
=========================================
  Files           769      769           
  Lines         22668    22668           
  Branches       4456     4456           
=========================================
  Hits          17888    17888           
  Misses         4067     4067           
  Partials        713      713           

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

@kamakshipal1-tech
Copy link
Author

Thanks for the checks! I’ll fix the clang-format issue and update the PR shortly.

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.

2 participants