MCPcopy 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

mainMethod · 0.95
BucketMethod · 0.45
incMethod · 0.45
decMethod · 0.45
insertMethod · 0.45
pushMethod · 0.45
addNumMethod · 0.45
balanceMethod · 0.45
insertMethod · 0.45
removeMethod · 0.45
zigzagLevelOrderMethod · 0.45
levelOrder1Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected