Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithmzuo/algorithm-journey
/ add
Method
add
src/class032/Code01_Bitset.java:25–27 ·
view source on GitHub ↗
(int num)
Source
from the content-addressed store, hash-verified
23
}
24
25
public
void
add(
int
num) {
26
set[num / 32] |= 1 << (num % 32);
27
}
28
29
public
void
remove(
int
num) {
30
set[num / 32] &= ~(1 << (num % 32));
Callers
15
main
Method · 0.95
Bucket
Method · 0.45
inc
Method · 0.45
dec
Method · 0.45
insert
Method · 0.45
push
Method · 0.45
addNum
Method · 0.45
balance
Method · 0.45
insert
Method · 0.45
remove
Method · 0.45
zigzagLevelOrder
Method · 0.45
levelOrder1
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected