Skip to content

Added ToggleKthBit algorithm in bitmanipulation with unit tests. The method toggles the K-th bit of a number using bitwise XOR. Includes an example and JavaDoc.#6298

Closed
Rahul-18r wants to merge 3 commits into
TheAlgorithms:masterfrom
Rahul-18r:master

Conversation

@Rahul-18r

@Rahul-18r Rahul-18r commented Jun 19, 2025

Copy link
Copy Markdown
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 code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter

codecov-commenter commented Jun 19, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.15%. Comparing base (ae71861) to head (c723c7d).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6298      +/-   ##
============================================
- Coverage     74.16%   74.15%   -0.01%     
  Complexity     5362     5362              
============================================
  Files           678      679       +1     
  Lines         18686    18687       +1     
  Branches       3625     3625              
============================================
  Hits          13858    13858              
  Misses         4273     4273              
- Partials        555      556       +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.

@Rahul-18r Rahul-18r closed this Jun 19, 2025
@Rahul-18r Rahul-18r reopened this Jun 19, 2025
@Rahul-18r Rahul-18r closed this Jun 19, 2025
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