MCPcopy Index your code
hub / github.com/neetcode-gh/leetcode / add

Method add

java/0705-design-hashset.java:7–9  ·  view source on GitHub ↗
(int key)

Source from the content-addressed store, hash-verified

5 }
6
7 public void add(int key) {
8 setArray[key]=true;
9 }
10
11 public void remove(int key) {
12 setArray[key]=false;

Callers 15

openLockMethod · 0.45
generateChildrenMethod · 0.45
LockingTreeMethod · 0.45
backtrackMethod · 0.45
levelOrderBottomMethod · 0.45
countSubIslandsMethod · 0.45
isValidMethod · 0.45
minimumFuelCostMethod · 0.45
averageOfLevelsMethod · 0.45
levelOrderMethod · 0.45
canFinishMethod · 0.45

Calls

no outgoing calls

Tested by 4

markMethod · 0.36
greatestLetterMethod · 0.36