(int n)
| 48 | |
| 49 | //Check if number is power of 2 or not |
| 50 | public static boolean isPowerof2(int n) { |
| 51 | return (n & (n-1)) == 0; |
| 52 | } |
| 53 | |
| 54 | //Count number of set bits |
| 55 | public static int countSetBits(int n) { |
nothing calls this directly
no outgoing calls
no test coverage detected