DSA icon indicating copy to clipboard operation
DSA copied to clipboard

Added brian Kernighans Algorithm

Open NextThread opened this issue 11 months ago • 1 comments

PR Checklist:

  • [x] My submission is formatted according to the guidelines in the contributing guide
  • [x] My addition is on refer on the language README.md file
  • [x] My addition does not have a spelling problem
  • [x] My submission has a proper and user-friendly description of the algorithm
  • [x] My submission has the time complexity of the algorithm
  • [x] My submission has sample input-output of the program (NOT FOR PYTHON)

What kind of change does this PR introduce? (check at least one)

  • [ ] Bugfix
  • [x] New algorithm
  • [ ] Optimization in previous algorithms
  • [ ] Code style update
  • [ ] Refactor
  • [ ] Documentation
  • [ ] Other, please describe:

Briefly describe the changes in this PR

Added a new section on CPlusPlus of Bit-Manipulation. Added Brian-Kernighans's Algorithm in that section.

Other information:

NextThread avatar Aug 28 '23 15:08 NextThread

Thanks for opening this pull request! Please check out our contributing guidelines.

welcome[bot] avatar Aug 28 '23 15:08 welcome[bot]