Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ countZeros
Method
countZeros
java/Chapter 5/Question5_3/Question.java:16–18 ·
view source on GitHub ↗
(int i)
Source
from the content-addressed store, hash-verified
14
}
15
16
public
static
int
countZeros(
int
i) {
17
return
32 - countOnes(i);
18
}
19
20
public
static
boolean hasValidNext(
int
i) {
21
if
(i == 0) {
Callers
nothing calls this directly
Calls
1
countOnes
Method · 0.95
Tested by
no test coverage detected