Skip to content

Remove SetKthBit - #4991

Merged
siriak merged 1 commit into
TheAlgorithms:masterfrom
vil02:remove_set_kth_bit
Jan 3, 2024
Merged

siriak merged 1 commit into
TheAlgorithms:masterfrom
vil02:remove_set_kth_bit

Conversation

@vil02

@vil02 vil02 commented Jan 2, 2024 •

Copy link
Copy Markdown
Member

SetKthBit.setKthBit is the same as SingleBitOperations.setBit, therefore I decided to remove SetKthBit. However, I suggest to keep tests cases of SetKthBit.setKthBit in SingleBitOperationsTest.

  • 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

@vil02
vil02 marked this pull request as ready for review January 2, 2024 22:38
@vil02
vil02 force-pushed the remove_set_kth_bit branch from 4e8a161 to 1576b55 Compare January 3, 2024 18:17

@siriak siriak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good catch! I wonder if there's a way to make this class more discoverable because SetKthBit is what people are often looking for. And while on further inspection it's clear that SingleBitOperations must have SetKthBit inside, it's not found by simple search by name.

@siriak
siriak merged commit 092ac57 into TheAlgorithms:master Jan 3, 2024
@vil02
vil02 deleted the remove_set_kth_bit branch January 4, 2024 10:39
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