mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: enable HideUtilityClassConstructor in checkstyle (#5147)
This commit is contained in:
@@ -5,7 +5,9 @@ package com.thealgorithms.bitmanipulation;
|
||||
* @author Bama Charan Chhandogi (https://github.com/BamaCharanChhandogi)
|
||||
*/
|
||||
|
||||
public class IndexOfRightMostSetBit {
|
||||
public final class IndexOfRightMostSetBit {
|
||||
private IndexOfRightMostSetBit() {
|
||||
}
|
||||
public static int indexOfRightMostSetBit(int n) {
|
||||
if (n == 0) {
|
||||
return -1; // No set bits
|
||||
|
||||
Reference in New Issue
Block a user